-
Notifications
You must be signed in to change notification settings - Fork 238
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
Combines mergedSchemas with original to ensure no edge properties are lost in schema item #985
Conversation
Size Change: +4.9 kB (+0.05%) Total Size: 9.15 MB
ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit 1283280): https://docusaurus-openapi-36b86--pr985-5uzhfb7f.web.app (expires Sun, 03 Nov 2024 15:31:57 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: bf293780ee827f578864d92193b8c2866acd459f |
|
||
if (name === "eventName") { | ||
console.log(mergedSchemaName, combinedSchemas); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this debugging info that was left in there?
Description
Addresses issue reported in #977 and also adds support for rendering
example
value.Motivation and Context
Previously, if an edge property referenced an allOf the behavior was to resolve the allOf and render the
SchemaItem
based solely on that result. This change now merges the allOf result with the original schema to ensure nothing is lost.How Has This Been Tested?
Tested by reproducing issue described in #977
Screenshots (if appropriate)