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

Not working enum references #85

Open
piotrjozwiak opened this issue Aug 2, 2017 · 0 comments
Open

Not working enum references #85

piotrjozwiak opened this issue Aug 2, 2017 · 0 comments

Comments

@piotrjozwiak
Copy link

piotrjozwiak commented Aug 2, 2017

Hi everybody
I have problem with enum references. I use referencing like this:

swagger: '2.0'
info:
  version: 1.0.0
  title: Pets Store
paths:
  /pets:
    get:
      responses:
        200:
          description: Returns all the pets
          schema:
            $ref: '#/definitions/List'
        201:
          description: Returns all the pets
          schema:
            $ref: '#/definitions/Set'

definitions:
  List:
    type: string
    enum: &my-list
      - one
      - two
      - three
  Set:
    type: string
    enum: *my-list

So declaration has name started with & and reference starts with * . It works well on swagger but does not work on your UI. I get well response sample but on response schema i have:

Can be m, y, -, l, i, s, t
instead of referenced enums.

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