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

"example" doesn't work for array. #408

Closed
hpatoio opened this issue Jan 17, 2018 · 1 comment
Closed

"example" doesn't work for array. #408

hpatoio opened this issue Jan 17, 2018 · 1 comment

Comments

@hpatoio
Copy link

hpatoio commented Jan 17, 2018

I've this definition

{
  "name": "category_in",
  "in": "query",
  "description": "Filter by category | Category code need to be passed",
  "required": false,
  "type": "array",
  "items": {
      "type": "string",
      "example": [
         "cat1-code,cat2-code",
         "cat3-code"
      ]
  },
  "collectionFormat": "csv"
},

But examples are not rendered in the doc. This is what I get

image

Is the definition wrong or am I missing something ?

@RomanHotsiy
Copy link
Member

Your definition is completely OK. It's a ReDoc issue.
Thanks for reporting.

RomanHotsiy added a commit that referenced this issue Jan 21, 2018
@hpatoio hpatoio closed this as completed Jan 22, 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

2 participants