feat(openapi): Allow setting info extensions in OApi specifications#1158
Merged
attila-lin merged 4 commits intopoem-web:masterfrom Feb 26, 2026
Merged
feat(openapi): Allow setting info extensions in OApi specifications#1158attila-lin merged 4 commits intopoem-web:masterfrom
attila-lin merged 4 commits intopoem-web:masterfrom
Conversation
Collaborator
|
would you mind add some test case? thank you! |
Contributor
Author
|
Hi, sorry, I was busy the last few days, but I've now added a test case that checks the extensions are correctly encoded into the spec |
Collaborator
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The OpenAPI Info object may be extended with additional fields, e.g. from the OApi 3.0.3 Spec:
This PR allows setting such extensions via poem-openapi:
results in the extensions being added in the JSON and YAML spec endpoints:
{ "openapi": "3.0.0", "info": { // ... "x-category": "Example", "x-segment": [ "B2B", "B2C" ] } // ... }I guess this implements at least a small part #908