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

Incorrect render pipeDelimited array #990

Closed
Yalieee opened this issue Jul 31, 2019 · 1 comment
Closed

Incorrect render pipeDelimited array #990

Yalieee opened this issue Jul 31, 2019 · 1 comment

Comments

@Yalieee
Copy link

Yalieee commented Jul 31, 2019

Hi, could you help check is this a bug in redoc?

Example

parameters:
  - in: query
    name: ids
    style: pipeDelimited
    explode: false
    schema:
      type: array
      items:
        type: string
        example: [10-A12345, 10-22]

Result

螢幕快照 2019-07-31 下午2 58 14

Example: ids=10-A12345,10-22

Expected Result

According to serialization, the delimiter should be pipe. So, ids=10-A12345|10-22

Version

2.0.0-rc.13

@RomanHotsiy
Copy link
Member

Your example is on the wrong level. Move it to array level:

parameters:
  - in: query
    name: ids
    style: pipeDelimited
    explode: false
    schema:
      type: array
      example: [10-A12345, 10-22]
      items:
        type: string

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