-
Notifications
You must be signed in to change notification settings - Fork 148
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: clean up the discriminator mapping in the remove-x-internal decorator #1694
fix: clean up the discriminator mapping in the remove-x-internal decorator #1694
Conversation
🦋 Changeset detectedLatest commit: ec94fa8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Coverage report
Test suite run success811 tests passing in 121 suites. Report generated by 🧪jest coverage report action from ec94fa8 |
9afd155
to
20f7448
Compare
d9c04a6
to
b7b20da
Compare
if (resolved.node?.[hiddenTag]) { | ||
if (resolved.node?.[internalFlagProperty]) { | ||
// First, remove the reference in the discriminator mapping, if it exists: | ||
if (parent.discriminator?.mapping) { |
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.
add extra check for typeof object
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.
Added here.
88384ae
to
f3e9762
Compare
f3e9762
to
ec94fa8
Compare
What/Why/How?
Fixed the
remove-x-internal
decorator, which was not removing the reference in the corresponding discriminator mapping while removing the original $ref.Reference
Fixes #1649
Testing
Screenshots (optional)
Check yourself
Security