Skip to content

Conversation

@Elkasitu
Copy link
Contributor

This commit introduces a postprocessing hook for drf-spectacular which will convert all enums used in the OSIDB API into x-extensible-enums.

This is a proprietary extension pushed by the Zalando API Guidelines which essentially tells clients that a given enumeration may grow in the future and that said growth does not constitute a breaking change, so clients should be ready to accept any value.

For clients not recognizing the x-extensible-enum extension, the type should become looser (string), so this shouldn't be considered a breaking change either.

This commit introduces a postprocessing hook for drf-spectacular which
will convert all enums used in the OSIDB API into x-extensible-enums.

This is a proprietary extension pushed by the Zalando API Guidelines
which essentially tells clients that a given enumeration may grow in the
future and that said growth does not constitute a breaking change, so
clients should be ready to accept any value.

For clients not recognizing the x-extensible-enum extension, the type
should become looser (string), so this shouldn't be considered a
breaking change either.
@Elkasitu Elkasitu added the technical For PRs that introduce changes not worthy of a CHANGELOG entry label May 28, 2025
@Elkasitu Elkasitu marked this pull request as ready for review May 28, 2025 10:29
@Elkasitu Elkasitu added the blocked PR is not ready to be merged due to outstanding issues label Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked PR is not ready to be merged due to outstanding issues technical For PRs that introduce changes not worthy of a CHANGELOG entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants