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

Nested array references are not processed when using external references #286

Closed
mapsu opened this issue Aug 17, 2016 · 4 comments
Closed
Milestone

Comments

@mapsu
Copy link

mapsu commented Aug 17, 2016

Having following api and models:
api.yaml:

swagger: "2.0"
info:
  title: test data for nested list ext references
  version: '0.0.0'
paths:
  /:
    get:
      responses:
        "200":
          schema:
            $ref: "./PetList.yaml"

PetList.yaml:

title: "PetList"
properties:
  pets:
    type: array
    items:
      $ref: "./Pet.yaml"

Pet.yaml:

title: "Pet"
properties:
  allergies:
    type: array
    items:
      $ref: "./Allergy.yaml"

Allergy.yaml:

title: "Allergy"
properties:
  name:
    type: string
  severity:
    type: number

The Allergy model is not processed at all.

@mapsu
Copy link
Author

mapsu commented Aug 17, 2016

This might be related to #270

@mapsu
Copy link
Author

mapsu commented Aug 26, 2016

I have not tested but #284 might resolve this.

@diegode
Copy link

diegode commented Aug 26, 2016

Yes, this should be fixed now.

fehguy added a commit that referenced this issue Aug 26, 2016
@fehguy fehguy mentioned this issue Aug 26, 2016
fehguy added a commit that referenced this issue Aug 26, 2016
@fehguy
Copy link
Contributor

fehguy commented Aug 26, 2016

It was fixed as @diegode mentioned. Added tests to prove.

@fehguy fehguy modified the milestone: v1.0.23 Oct 28, 2016
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

3 participants