diff --git a/mapping-tools/swagger.json b/mapping-tools/swagger.json index c1179e6..66164b5 100644 --- a/mapping-tools/swagger.json +++ b/mapping-tools/swagger.json @@ -21,7 +21,7 @@ "IdRNSRs1": { "type": "array", "items": { - "$ref": "#/components/IdRNSR1" + "$ref": "#/components/schemas/IdRNSR1" } }, "IdRNSR1": { @@ -31,7 +31,7 @@ "type": "integer" }, "value": { - "$ref": "#/components/RNSR" + "$ref": "#/components/schemas/RNSR" } } }, @@ -43,7 +43,7 @@ "IdInstitutes": { "type": "array", "items": { - "$ref": "#/components/IdInstitute" + "$ref": "#/components/schemas/IdInstitute" } }, "IdInstitute": { diff --git a/mapping-tools/v1/rnsr/instituts-cnrs/json.ini b/mapping-tools/v1/rnsr/instituts-cnrs/json.ini index 26df5b4..c6b9bcf 100644 --- a/mapping-tools/v1/rnsr/instituts-cnrs/json.ini +++ b/mapping-tools/v1/rnsr/instituts-cnrs/json.ini @@ -10,13 +10,14 @@ # post.requestBody.content.examples.inee.value.value = 200919362L post.responses.default.description = Renvoie un JSON, composé d'`id`, `value`, avec `value` étant un Institut du CNRS -post.responses.default.schema.$ref = #/components/schemas/IdInstitutes +# post.responses.default.schema.$ref = #/components/schemas/IdInstitutes +post.responses.default.content.application/json.schema.$ref = #/components/schemas/IdInstitutes post.tags.0: mapping post.summary: Trouve l'Institut du CNRS dans lequel se trouve une structure de recherche post.consumes.0: application/json post.produces.0: application/json post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/idRNSRs1 +post.requestBody.content.application/json.schema.$ref = #/components/schemas/IdRNSRs1 [use] plugin = basics