java-json-tools / json-schema-core

Core support architecture for json-schema-validator and other processors
Other
67 stars 57 forks source link

only validate the first element of json array #20

Open RaymondHsu opened 9 years ago

RaymondHsu commented 9 years ago

In my json schema, I define some parameters are "required" within a json array. If I miss those "required" parameters in the first element of the json array, the validation logic will detect and report error. If I miss the "required" parameters in the second element or after of json array, the validation logic does not detect the error and report success instead.

daveclayton commented 8 years ago

Hi @RaymondHsu do you have some example code for this?