Skip to content

Commit

Permalink
fix(doc): add enums of types for identifiers route
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Jan 19, 2024
1 parent ef1a180 commit 9b2aefe
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/openapi/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,8 @@ components:
$ref: './schemas/officialtexts/enums/nature.yml'
OfficialTextTypesEnum:
$ref: './schemas/officialtexts/enums/type.yml'
IdentifiersEnum:
$ref: './schemas/identifiers/enums/type.yml'
PersonIdentifierTypesEnum:
$ref: './schemas/persons/enums/identifier-types.yml'
PersonWeblinkTypesEnum:
Expand Down
50 changes: 50 additions & 0 deletions src/openapi/schemas/identifiers/enums/type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
type: string
enum:
- annelis
- bibid
- bnf
- cnrs-unit
- crunchbase
- cti
- dealroom
- ed
- euTransparency
- eter
- etid
- finess
- fundref
- googleScholar
- grid
- hatvp
- idhal
- idref
- isil
- isni
- oc
- orgref
- pia
- piaweb-organization
- piaweb-project
- pic
- rcr
- ringgold
- rna
- rnsr
- ror
- rtoad
- sdid
- siret
- uai
- wikidata
- bnf
- googleScholar
- idhal
- idref
- isni
- nnt
- orcid
- scopus
- univ-droit
- wikidata
- wos
- researchgate
2 changes: 1 addition & 1 deletion src/openapi/schemas/identifiers/identifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ allOf:
description: Unique resource identifier
pattern: '^[a-zA-Z0-9]{5}$'
type:
$ref: '../../api.yml#/components/schemas/Identifiers'
$ref: ../../api.yml#/components/schemas/IdentifiersEnum
value:
type: string
active:
Expand Down

0 comments on commit 9b2aefe

Please sign in to comment.