Skip to content

[openapi v3.1] Preserve property item keys #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

WyriHaximus
Copy link

This is mainly useful when dealing with webhooks to use the array index as a name for the given webhook as the spec uses it as a unique
identifier: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#openapi-object

@WyriHaximus WyriHaximus mentioned this pull request Jan 17, 2023
3 tasks

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
This is mainly useful when dealing with webhooks to use the array index
as a name for the given webhook as the spec uses it as a unique
identifier: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#openapi-object
@WyriHaximus WyriHaximus force-pushed the openapi-31-preserve-property-keys branch from 16c20be to a030e01 Compare March 23, 2023 15:49
@cebe
Copy link
Owner

cebe commented Apr 23, 2025

if the value is a map instead of an array, the definition should be changed, so that switch case 2 applies.

@cebe cebe closed this Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants