Skip to content

SwaggerUI specify default values #2868

Answered by laurenceisla
yevon asked this question in Q&A
Discussion options

You must be logged in to vote

That is not implemented yet. For now, a solution is to manually customize the OpenAPI output and add the "example" key to each "parameter", e.g:

  "parameters": {
    ...
    "rowFilter.your_table.column": {
      "name": "column",
      "required": false,
      "format": "text",
      "in": "query",
      "type": "string",
      "example": "eq.Value"
    },
    ...
  }

We're not doing big changes to the OpenAPI output before #1698 is completed. I'll open an issue to keep track of this in the meantime.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@yevon
Comment options

Answer selected by wolfgangwalther
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants