hierarchial property validation

79 views
Skip to first unread message

Anmol Deep

unread,
May 6, 2015, 11:56:46 AM5/6/15
to json-schem...@googlegroups.com

All ,

Does json-schema-validator support validation for a hierarchy of properties , e.g.

a: {
     key1: val1,
     key2:val2,
     key3:val3,
     b: {
          key4:val4,
          key5: val5,
          key6:val6,
          c: {
         ---------------------
        and so on ,

I want to validate if b comes after 'a' and 'c' comes after 'b' , and throw an error if c comes before 'b' or before 'a' .

Question 2 : this validator is supported only for Jackson , if I am using google's gson , can I use your validator still ??

Thanks in advance.
Anmol Deep
Reply all
Reply to author
Forward
0 new messages