Skip to content

Commit

Permalink
nit: openapi: fix more $ref by wrapping in allOf
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjat committed Feb 22, 2024
1 parent deef1ea commit cb3c188
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/spec/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ x-examples:
x-err-responses:
common-errors: &common_error_responses
'400':
$ref: '#/components/responses/HumanReadableError'
allOf: { $ref: '#/components/responses/HumanReadableError' }
description: Invalid request.
'404':
$ref: '#/components/responses/NotFoundError'
allOf: { $ref: '#/components/responses/NotFoundError' }
description: The requested resource was not found.
'500':
$ref: '#/components/responses/HumanReadableError'
allOf: { $ref: '#/components/responses/HumanReadableError' }
description: A server error occurred.

paths:
Expand Down

0 comments on commit cb3c188

Please sign in to comment.