Skip to content

feat(openapi): merge request body, support form urlencoded parameters #113

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ColinFrick
Copy link

This commit introduces two new features to improve the OpenAPI generation process.

  1. It adds logic to merge request bodies when combining multiple API definitions. This ensures that request bodies from both old and new API objects are properly merged, handling scenarios where they use different media types or schemas. For conflicting schemas, a oneOf node is utilized to allow multiple schema variations in a compatible manner.
  2. It enhances support for form-encoded parameters by including them in the OpenAPI request body. If form parameters are present, they are added under the application/x-www-form-urlencoded content type, alongside any existing JSON body parameters, with their schema automatically generated.

@ColinFrick ColinFrick requested review from a team as code owners February 25, 2025 13:52
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.

1 participant