Closed LaurentDardenne closed 5 years ago
Hi
for what I see MyProperty
is an object with a nested items
array of objects
so you should define the following json path expressions:
...,
{"path":"$.MyProperty", type":"object", mandatoryFields": ["type","items"] },
{"path":"$.MyProperty.type", type":"string" },
{"path":"$.MyProperty.items", type":"array" },
{"path":"$.MyProperty.items.[*] "type":"object", "mandatoryFields": ["Name","PartName","Reason","Result","Severity"] },
{"path":"$.MyProperty.items.[*].Name", "type":"string },
{"path":"$.MyProperty.items.[*].PartName", "type":"string },
...
You might also consider using validation with JSON Schema
Thank you :-)
Hi, how to define a checker for an object property that is an array of objects ?
I have this checkers:
Windows Server 2008 R2 MongoDB Server v4.0 RestHeart v3.5.0