Server Codegen Use Instants instead of Dates #1317
-
|
Hello! I've seen serveral issues posted about how to use Instants in the client side generation but none in server side. I've already tried with the x-codegen-type: "java.time.Instant" but no success. Is there anyone that has achieved this behaviour? At the moment my openAPi looks like this localeStartTime: Using quarkus-openapi-generator-server 2.12.1 Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
cc @mcruzdev |
Beta Was this translation helpful? Give feedback.
Hi @sergiolarrad,
The
x-codegen-typeis applied to the bean, not to individual properties. See the following example:As shown above, setting
x-codegen-typeon a property has no effect.@EricWittmann, in my opinion, it would be really useful to support an annotation that allows overriding the type of a specific property as well. WDYT?