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

Openapi Shema annotations default value issue #26546

Closed
KyriacosP opened this issue Jul 4, 2022 · 3 comments · Fixed by #27206
Closed

Openapi Shema annotations default value issue #26546

KyriacosP opened this issue Jul 4, 2022 · 3 comments · Fixed by #27206
Labels
Milestone

Comments

@KyriacosP
Copy link

Describe the bug

When using the @Schema annotation with the defaultValue parameter the value is not converted to the correct type when the OpenAPI specification is generated by quarkus-smallrye-openapi. The issue happens with the integer and boolean types as you can see in the screenshots.

image
image

Expected behavior

The corrected behavior is that the defaultValue is converted to the correct type like it happens with the example value.

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

java version "11.0.12" 2021-07-20 LTS

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.7.1.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)

Additional information

No response

@KyriacosP KyriacosP added the kind/bug Something isn't working label Jul 4, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 4, 2022

@MikeEdgar
Copy link
Contributor

This is an issue/bug for smallrye-open-api. I've opened smallrye/smallrye-open-api#1174 to track it.

@KyriacosP
Copy link
Author

ok thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants