We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When I have a field of type Iterable of an enum, e.g. a Set or a Seq, then springdoc is not generating the correct OpenAPI specification.
Set
Seq
springdoc
To Reproduce Steps to reproduce the behavior:
What version of spring-boot you are using? Version 3.2.5.
3.2.5
What modules and versions of springdoc-openapi are you using? Version 2.5.0 and the org.springdoc:springdoc-openapi-starter-webmvc-ui module.
2.5.0
org.springdoc:springdoc-openapi-starter-webmvc-ui
What is the actual and the expected result using OpenAPI Description (yml or json)? Expected result:
"fareClasses": { "type": "array", "description": "FareClasses", "items": { "type": "string" } }
Actual result:
"fareClasses": { "type": "array", "description": "FareClasses", "items": { "type": "string", "enum": [ "FIRST_CLASS", "SECOND_CLASS", "THIRD_CLASS", "ECONOMY_CLASS" ] } }
Please refer to the sample code that reproduces the issue.
Expected behavior
The fareClasses field should be an enum.
fareClasses
Screenshots
Additional context N/A
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When I have a field of type Iterable of an enum, e.g. a
Set
or aSeq
, thenspringdoc
is not generating the correct OpenAPI specification.To Reproduce
Steps to reproduce the behavior:
What version of spring-boot you are using?
Version
3.2.5
.What modules and versions of springdoc-openapi are you using?
Version
2.5.0
and theorg.springdoc:springdoc-openapi-starter-webmvc-ui
module.What is the actual and the expected result using OpenAPI Description (yml or json)?
Expected result:
Actual result:
Please refer to the sample code that reproduces the issue.
Expected behavior
The
fareClasses
field should be an enum.Screenshots
Additional context
N/A
The text was updated successfully, but these errors were encountered: