-
Notifications
You must be signed in to change notification settings - Fork 764
Add isFreelyNamed #1240
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
Add isFreelyNamed #1240
Conversation
Trying to fix swagger-api/swagger-ui#4168
freelyNamedKeyParents is private no need to export
src/specmap/helpers.js
Outdated
| const freelyNamedKeyParents = [ | ||
| 'properties', | ||
| ] | ||
| const freelyNamedStrParents = [ |
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.
We should probably be calling this freelyNamedPaths since these are complete paths, not parent keys (the original sin here is mine)
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.
Done ...
Also look at my question about consolidating some
| } | ||
| }, | ||
| properties: { | ||
| allOf: { |
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.
Would like to see a property named $ref tested as well (new test or added to existing one, i'm not picky!)
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.
Done
shockey
left a comment
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.
LGTM!
|
thanks @heldersepu! |

Description / Motivation and Context
Trying to fix swagger-api/swagger-ui#4168
Types of changes
package.json)Checklist: