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
Wrong java.time.Instant properties schema #812
Comments
@phillip-kruger - this is fixed on |
@MikeEdgar - thanks for the answer! BTW, I found the workaround: @field: Schema( works fine for me. |
@hrensgory, I am marking this a duplicate of #769, fixed by #771 (yet to be released). @phillip-kruger, it might make sense to do another release from |
We can do that. I'll do a release now. @hrensgory Quarkus 2 is nearly out, and the issue is fixed there. Try with CR2 to confirm. |
Closing here (to do the release) |
CR2 works like a charm. Thank you, @phillip-kruger |
Ok great, are you ok to wait for Quarkus 2, or should we backport ? |
We're ok to wait. Thank you! |
Hi,
I have a problem with java.time.Instant properties representation in OpenAPI, generated by smallrye-open-api
Environment: Quarkus 1.13.6, Kotlin 1.4.32
Data class:
@Schema(description = "Quark")
data class Quark (
val name: String? = null,
val description: String? = null,
@Schema(description = "created date", type = SchemaType.STRING, format = "date-time")
val createdDate: Instant
)
JSON output from service looks ok:
{
}
Expected schema is something like this:
Real schema, generated at http://localhost:8080/openapi is much more verbose:
please suggest how to get rid of unnecessary (and wrong ) "Instant" object.
Minimal reproduced attached - code-with-quarkus.zip
Thanks in advance.
The text was updated successfully, but these errors were encountered: