Skip to content

Conversation

@heldersepu
Copy link
Contributor

@heldersepu heldersepu commented Feb 3, 2018

Description / Motivation and Context

Trying to fix swagger-api/swagger-ui#4168

Types of changes

  • No code changes (changes to documentation, CI, metadata, etc)
  • Dependency changes (any modification to dependencies in package.json)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@heldersepu
Copy link
Contributor Author

@shockey in the helper we might be able to consolidate 'parameters' and 'components/parameters' ...
What do you think?

const freelyNamedKeyParents = [
'properties',
]
const freelyNamedStrParents = [
Copy link
Contributor

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)

Copy link
Contributor Author

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: {
Copy link
Contributor

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!)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@shockey shockey left a comment

Choose a reason for hiding this comment

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

LGTM!

@shockey shockey merged commit aae5831 into swagger-api:master Feb 8, 2018
@shockey
Copy link
Contributor

shockey commented Feb 8, 2018

thanks @heldersepu!

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.

Unable to have $ref, allOf, etc under properties in a schema.

2 participants