Skip to content
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

fix jsonSchemaMergeAllOf options in createRequestSchema #374

Merged

Conversation

98o718
Copy link
Contributor

@98o718 98o718 commented Dec 27, 2022

Description

The creation of a request schema works incorrectly. If there is a request body with allOf refs there will be no correct request body.

Motivation and Context

It will fix bug

Screenshots

image ➡️ image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

@welcome-to-palo-alto-networks

🎉 Thanks for opening this pull request! We really appreciate contributors like you! 🙌

@github-actions
Copy link

Visit the preview URL for this PR (updated for commit c0df3aa):

https://docusaurus-openapi-36b86--pr374-k0ulthdj.web.app

(expires Thu, 26 Jan 2023 12:41:23 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@sserrata
Copy link
Member

Hi @98o718, thanks for the PR/fix! I am still not 100% clear on how this prevent some allOf schemas from getting resolved/merged but I can definitely see that we were specifying the ignoreAdditionalProperties option in the wrong place.

Copy link
Member

@sserrata sserrata left a comment

Choose a reason for hiding this comment

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

👍🏽

@sserrata sserrata merged commit 6e4fd13 into PaloAltoNetworks:main Jan 2, 2023
@welcome-to-palo-alto-networks
Copy link

🎉 Congrats on getting your first pull request merged! We here at Palo Alto Networks are so grateful! ❤️

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