You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
responses: "200": $ref: "#/components/responses/200_error_response"
and 400_error_response: description: Bad Request. content: application/json: examples: response: value: > { "status": "400", "description": "The server cannot process the request.'The specified resource was not found.", "more_info": "" }
Note that "schema" field is missing. According to https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md, a missing schema field for response objects indicates there is no content returned as part of the response. As the example contains content, the schema field should be specified.
The text was updated successfully, but these errors were encountered:
Hi,
In the API example templates (JSON and YAML, 2.0 and 3.0) from https://api.gov.au/standards/national_api_standards/getting-started.html#what-is-this-design-standard?
, error responses are defined thusly :-
responses: "200": $ref: "#/components/responses/200_error_response"
and
400_error_response: description: Bad Request. content: application/json: examples: response: value: > { "status": "400", "description": "The server cannot process the request.'The specified resource was not found.", "more_info": "" }
Note that "schema" field is missing. According to https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md, a missing schema field for response objects indicates there is no content returned as part of the response. As the example contains content, the schema field should be specified.
The text was updated successfully, but these errors were encountered: