Using @JsonSubTypes() with Micronaut MongoDB and Native image #2068
-
Hello, is it possible to use @JsonSubTypes() with Micronaut MongoDB and Native image? I have class:
and then Student and Supervisor classes which have some own specific fields. I defined controller method for saving all types of Users:
When I run app outside of native image everything works fine, but inside native image I get error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Seems like a bug, can probably be worked around with |
Beta Was this translation helpful? Give feedback.
Seems like a bug, can probably be worked around with
@TypeHint(IdPropertyNamingStrategy.class)
, please file an issue and attach a reproducer