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

Prefer schema name instead of property name #3

Closed
Dzoukr opened this issue Aug 27, 2018 · 1 comment
Closed

Prefer schema name instead of property name #3

Dzoukr opened this issue Aug 27, 2018 · 1 comment

Comments

@Dzoukr
Copy link
Collaborator

Dzoukr commented Aug 27, 2018

For yaml like this:

ObjectA:
  type: object
  properties:
    subObj:
        $ref: '#/components/schemas/ObjectB'

ObjectB:
  type: object
  properties:
    name:
      type: string

schemas contains ObjectB and SubObj instead of ObjectA. Since ObjectA is known name of schema, it should be preffered.

Dzoukr added a commit that referenced this issue Aug 27, 2018
@Dzoukr
Copy link
Collaborator Author

Dzoukr commented Aug 27, 2018

Fixed in 1.1.4

@Dzoukr Dzoukr closed this as completed Aug 27, 2018
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

No branches or pull requests

1 participant