gravitee-docs icon indicating copy to clipboard operation
gravitee-docs copied to clipboard

[swagger] Paths in swagger doc should be an array

Open danlange opened this issue 6 years ago • 0 comments

In the swagger doc (1.18.2), for ApiEntity, UpdateApiEntity, PlanEntity, NewPlanEntity, and UpdatePlanEntity, the "paths" field is defined as a Map<String,Path> ("paths": { "type": "object", "additionalProperties":{"$ref":"#/definitions/Path"}}), but the API itself returns a Map<String,Path[]> ("paths": { "type": "object", "additionalProperties": {"type": "array", "items": { "$ref": "#/definitions/Path" }}})

danlange avatar Sep 11 '18 23:09 danlange