-
|
Hello, From that time (due to new restriction) I am still getting error when: Error message: Can I somehow allow polymorphic / tell jobrunr that source object is not interface, to solve this issue? I tried specify my own JsonMapper, but this influence all mapping, not just jobrunr.. Thank you for your advice |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
|
Hi @mwxp06, I don't have the full details but I believe this exception is coming from Jackson 3 not allowing polymorphic serialization by default. There is also little docs on how to configure things with Jackson 3... By default spring boot 4 comes with Jackson 3, so it's also the default JsonMapper JobRunr configures. A few options below, could you let me know what works for you as we're also in the process of documenting these? Use
|
Beta Was this translation helpful? Give feedback.
-
|
For anyone interested in this, JobRunr 8.4.0 allows to provide custom a custom polymorphic type validator. The how is documentated at https://www.jobrunr.io/en/documentation/serialization/jackson3/#allowing-polymorphic-type-deserialization-with-jackson-3. Alternatively, you can also read on how to avoid the need for custom type validation: https://www.jobrunr.io/en/documentation/serialization/jackson3/#exploring-alternatives-to-additional-polymorphic-type-validation. |
Beta Was this translation helpful? Give feedback.


For anyone interested in this, JobRunr 8.4.0 allows to provide custom a custom polymorphic type validator. The how is documentated at https://www.jobrunr.io/en/documentation/serialization/jackson3/#allowing-polymorphic-type-deserialization-with-jackson-3.
Alternatively, you can also read on how to avoid the need for custom type validation: https://www.jobrunr.io/en/documentation/serialization/jackson3/#exploring-alternatives-to-additional-polymorphic-type-validation.