Open fmigneault opened 4 years ago
Under UpdateApiEntity
, the "paths"
section:
"paths": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Path"
}
},
Should be replaced by something as follows :
"paths": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": { "$ref": "#/definitions/Rule" }
}
},
Schema validation provided below fails although it shouldn't.
Giving following body to the
PUT {GRAVITEE_APIM_URI}/management/apis/:id
request, I get a successful update response (200). The API is also correctly updated when I go look at the policy definition within Gravitee APIM UI.But using JSON schema validation between the Gravitee OpenAPI specification and the above body raises a validation error. Specifically, it doesn't like the following part of the definition:
The OpenAPI specification is invalid because the content under each path (ie: the policy definitions with its arguments) are indeed not formatted (nor expected by the API) with
path
andrules
fields.relates to #162