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

How to pass dynamic key-value pairs in the query #591

Open
juise opened this issue Jan 10, 2024 · 0 comments
Open

How to pass dynamic key-value pairs in the query #591

juise opened this issue Jan 10, 2024 · 0 comments

Comments

@juise
Copy link

juise commented Jan 10, 2024

Hello!

By ex, I have the following struct:

  operation :index,
    summary: "ABC",
    parameters: [
      name: [in: :query, type: :string, required: false, example: "some_log_name"],
      meta: [in: :query, type: :boolean, required: false],
    ],
    responses: [
      ok: Schemas.paginated(Schemas.ABC),
    ]

And in case meta is true it is supposed that in the query could be some optional, dynamic key-value pairs. But in case I send a request without pre-defined queries, I get an error:

"detail": "Unexpected field: a"

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