Validations on required fields during deserialization #201
Unanswered
Ayush-Kukreti
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi community,
I am trying to create a parser for the asyncApi v3.0 version, using the deserializer models provided in the project itself. jackson-models
I am able to deserialize Object using its respective deserializer, the issue is that if there is a required property for an object(eg: in Operations-Object we have action and Channel as required property), then lets say if I have a specification like below, where action property is missing, still the OperationsDeserializer will not throw any error during deserialization. is this expected ?
Please provide suggestions how I can handle these sort of validations for my asyncapi parser ? or if something I am missing here ?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions