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

Lack of Support for Form Explode Serialization in Query Parameters #722

Open
acerola1 opened this issue Feb 15, 2024 · 0 comments
Open

Lack of Support for Form Explode Serialization in Query Parameters #722

acerola1 opened this issue Feb 15, 2024 · 0 comments

Comments

@acerola1
Copy link

In the openapi specification the style: form, explode: true method is the default object serialization. When I define a schema with these, for example:

parameters:
  - in: query
    name: id
    schema:
      type: object
      properties:
        role:
          type: string
        firstName:
          type: string
      style: form
      explode: true

And I call the mock api with the correct serialization: /users?role=admin&firstName=Alex.

I encounter a validation error indicating a missing "id" property, suggesting the library expects the object as a single parameter rather than exploded into individual properties.

Expected Behavior: The library should validate requests with exploded form serialization correctly, recognizing individual properties as part of the specified object parameter.

Is there any solution or workaround for this?

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