Skip to content

Commit

Permalink
chore(sync): sync errors schema (#12416)
Browse files Browse the repository at this point in the history
## Motivation

Our error schemas are out of date from AIP
https://kong-aip.netlify.app/aip/193/ and are missing some status codes
(like Conflict).

<!-- Why are we doing this change -->

## Implementation information

Copied down the definition, in the future it might get synced.

<!-- Explain how this was done and potentially alternatives considered
and discarded -->

## Supporting documentation

<!-- Is there a MADR? An Issue? A related PR? -->

xrel: Kong/kong-mesh#6656

<!--
> Changelog: skip
-->
<!--
Uncomment the above section to explicitly set a [`> Changelog:` entry
here](https://github.com/kumahq/kuma/blob/master/CONTRIBUTING.md#submitting-a-patch)?
-->

---------

Signed-off-by: slonka <[email protected]>
  • Loading branch information
slonka authored Jan 2, 2025
1 parent 658fa15 commit 462a317
Show file tree
Hide file tree
Showing 3 changed files with 537 additions and 64 deletions.
4 changes: 2 additions & 2 deletions api/openapi/specs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,13 @@ components:
content:
application/problem+json:
schema:
$ref: './common/error_schema.yaml#/components/schemas/Error'
$ref: './common/error_schema.yaml#/components/schemas/BadRequestError'
InternalServerError:
description: Internal Server Error
content:
application/problem+json:
schema:
$ref: './common/error_schema.yaml#/components/schemas/Error'
$ref: './common/error_schema.yaml#/components/schemas/InternalError'
examples:
GlobalInsightExample:
value:
Expand Down
Loading

0 comments on commit 462a317

Please sign in to comment.