https://kotlinlang.org logo
#klaxon
Title
# klaxon
c

cedric

12/26/2018, 2:39 PM
@rrader Klaxon doesn't offer any particular support for validation, you can do it any way you want after parsing
r

rrader

12/26/2018, 2:39 PM
Ok, thanks, I am asking this because of this similar thread https://kotlinlang.slack.com/conversation/C0B8Q383C/p1545658515001900
Basically, the validation is done after object creation, is this correct?
c

cedric

12/26/2018, 4:22 PM
Yes.
Anything that Klaxon could offer more automatically would be pretty limited, compared to just running your own validation logic once you have parsed your JSON
Do let me know if you come up with a use case where Klaxon has information that you need for your own validation, though