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

Validation error if an empty integer parameter is passed that is not mandatory #6927

Closed
TactiusTertius opened this issue Feb 10, 2021 · 1 comment · Fixed by #6928
Closed

Comments

@TactiusTertius
Copy link

Q&A

  • OS: Windows 10
  • Browser: chrome
  • Version: 88.0.4324.150
  • Method of installation: npm
  • Swagger-UI version: 3.42.0
  • Swagger/OpenAPI version: Swagger 2.0, OpenAPI 3.0

Content & configuration

"FDBTitleFilter--titletypeid": {
"name": "titletypeid",
"in": "query",
"description": "to filter by title type id.",
"required": false,
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
},
"example": null
}

Describe the bug you're encountering

Since version 3.42.0 there is a validation error if there is no input for an integer defined field.
It is irrelevant whether the parameter was declared nullable or not.

To reproduce...

Steps to reproduce the behavior:

  1. Define an integer request parameter that is not required
  2. Perform a query with empty parameter
  3. See error

Expected behavior

See screenshot

Screenshots

image

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

Successfully merging a pull request may close this issue.

2 participants