Hi ,
i am trying to define a schema validation for schema that need to contain :
{ "a" :"a value",
"b":"b value" ,
"c":"c value" ,
"properties":{
"property1Name":{
"type" :"type value",
"field1":"field1value",
"field2":"field2value"
},
"property2Name":{
"type" :"type value",
"field1":"field1value",
"field2":"field2value"
}
}
}
i define a schema to validate the restrications on each instance :
{
"a":{"type":"string"} ,
"b":{"type":"string"},
"c" :{"type":"string"} ,
"required": ["a","b","c","properties"]
}
how can i add the restriction for this properties part ? that each property will contain "field1" and "field2" ?
Thanks,
Reut