Skip to content

issue-4850: fix extensions 'x-' prefix decoration for oas 3.1 #4880

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

Merged
merged 1 commit into from
May 5, 2025

Conversation

djankows
Copy link
Member

No description provided.

Copy link
Member

@frantuma frantuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code changes do update the logic to use the prefix also for 3.1, but this is applied regardless of the "target". It includes scenario where the extension is set to a Schema (JSON Schema), for which the prefix is not needed and would therefore keep the logic for openapi31 before the chance

Possibly adding a parameter to the method like usePrefix (applied to openapi31 only, current method kept for backward compatibility) is the way to go, and see in callers which one to call
image

@djankows djankows force-pushed the issue-4850 branch 2 times, most recently from f18513f to eb1dc70 Compare April 30, 2025 13:02
Copy link
Member

@frantuma frantuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djankows Added commit with a couple of additional AnnotationsUtils.getExtensions invocations updates that were missing.

Please review and if ok merge, please Squash commits before merging (with significant message)

@djankows djankows merged commit bc7436e into master May 5, 2025
6 checks passed
@djankows djankows deleted the issue-4850 branch May 5, 2025 08:44
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.

2 participants