https://www.drupal.org/project/openapi_jsonapi/issues/3185778
Swagger UI Failure due to incorrect file format :
- Tests are failing.
- Though this patch allows Swagger Editor and ReDoc to render documentation, Swagger flags the
itemsproperty as needing to be an object rather than an array. It also should not be empty. (Mentioned briefly in #3197082: Generated Swagger.json Does Not Validate with Swagger Editor).
"dummyAPI": {
"post": {
"parameters": [
{
"name": "ids",
"in": "query",
"description": "The IDS ,
"required": true,
"schema": {
"type": "array",
"items": {
"type": "object"
}
}
}
],
"tags": [
"DummyTag"
],
"summary": "Dummy summary",
"description": "Dummy Description",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"properties": {
"ids": {
"type": "array",
"items": {
"type": "object",
"title": "Dummy ID",
"description": "Dummy ID information.",
"properties": {
"dummy_id": {
"type": "string",
"title": "Dummy ID",
"description": "The dummy ID."
}
}
}
}
}
}
}
}
},
No comments:
Post a Comment