From 0a3f6964a8aa6969be2264c396648250eb5e5b7b Mon Sep 17 00:00:00 2001 From: Mihoub Debache Date: Thu, 14 Sep 2023 11:48:20 +0200 Subject: [PATCH] fix(identifiers-types): add piaweb for structures and projects identifiers --- src/api/commons/queries/structures.elastic.js | 2 +- src/openapi/schemas/structures/enums/identifier-types.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/commons/queries/structures.elastic.js b/src/api/commons/queries/structures.elastic.js index 27e122e0..0dda7c98 100644 --- a/src/api/commons/queries/structures.elastic.js +++ b/src/api/commons/queries/structures.elastic.js @@ -14,7 +14,7 @@ export default [ $match: { $expr: { $and: [ - { $in: ['$type', ['finess', 'grid', 'idref', 'ringgold', 'rnsr', 'ror', 'siret', 'uai', 'wikidata']] }, + { $in: ['$type', ['finess', 'grid', 'idref', 'piaweb-organization', 'piaweb-project','ringgold', 'rnsr', 'ror', 'siret', 'uai', 'wikidata']] }, ], }, }, diff --git a/src/openapi/schemas/structures/enums/identifier-types.yml b/src/openapi/schemas/structures/enums/identifier-types.yml index c02fae23..e10e5d58 100644 --- a/src/openapi/schemas/structures/enums/identifier-types.yml +++ b/src/openapi/schemas/structures/enums/identifier-types.yml @@ -23,6 +23,8 @@ enum: - oc - orgref - pia + - piaweb-organization + - piaweb-project - pic - rcr - ringgold