We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
When a boolean type parameter is annotated with @Schema (specifying description but not type), resulting in the OpenAPI type being changed to string.
@Schema
Example:
@PostMapping("/testBoolean") public void testBoolean( boolean bool, @Schema(description = "foo") boolean boolWithSchema ) { }
➜ ~ curl http://localhost:62535/v3/api-docs | jq '.paths."/testBoolean".post.parameters' [ { "name": "bool", "in": "query", "required": true, "schema": { "type": "boolean" } }, { "name": "boolWithSchema", "in": "query", "description": "foo", "required": true, "schema": { "type": "string", "description": "foo" } } ]
The text was updated successfully, but these errors were encountered:
1fc8f9d
Boolean Parameter with @Schema Annotation Changes Type to string in O…
9b488d9
…penAPI Documentation Fixes springdoc#2638
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
When a boolean type parameter is annotated with
@Schema
(specifying description but not type), resulting in the OpenAPI type being changed to string.Example:
The text was updated successfully, but these errors were encountered: