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

spaceDelimited option is not working #750

Open
jerearaujo03 opened this issue Mar 19, 2024 · 0 comments
Open

spaceDelimited option is not working #750

jerearaujo03 opened this issue Mar 19, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed and we are accepting pull requests from anyone willing to take this on.

Comments

@jerearaujo03
Copy link

Describe the bug

The query param serialization with spaceDelimited option is not working as expected

Expected behavior

The query param values in the URL should be separated by spaces -> v2/authorize/?enrollment_amr_values=pin liveness

Current behavior

The query param values in the URL are separated by comma (',') ->v2/authorize/?enrollment_amr_values=pin,liveness

image

Steps to reproduce

  1. Define this param for a GET request
- name: enrollment_amr_values
      in: query
      description: Specifies the methods to be used for the authorization
      schema:
        $ref: '#/components/schemas/enrollment_amr_values'
      style: spaceDelimited
      explode: false
      examples:
        Pin:
          value: pin
        Liveness:
          value: liveness
        Pin and Liveness:
          value: pin liveness
      required: false

...

components:
  schemas:
    enrollment_amr_values:
      type: array
      items:
        type: string
        uniqueItems: true
        default: [pin]
        enum:
          - pin
          - liveness
  1. Go to the documentation page and select many values for the enrollment_amr_values param

image

Context

I'm working on an oauth2 provider

Your Environment

  • Version used:
    docusaurus-plugin-openapi-docs: 3.0.0-beta-5
    @docusaurus/core: 3.1.1
  • Environment name and version: Chrome 122.0.6261.129 , node 20.11.0
  • Operating System and version: macOS 14.0
@jerearaujo03 jerearaujo03 added the bug Something isn't working label Mar 19, 2024
@sserrata sserrata added the help wanted Extra attention is needed and we are accepting pull requests from anyone willing to take this on. label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed and we are accepting pull requests from anyone willing to take this on.
Projects
None yet
Development

No branches or pull requests

2 participants