1{ 2 "type": "object", 3 "properties": { 4 "toplevel": { 5 "type": "array", 6 "items": { 7 "type": "object", 8 "properties": { 9 "foos": { 10 "type": "string", 11 "pattern": "(foo)+", 12 "message": { 13 "pattern": "{0}: Must be a string with the a shape foofoofoofoo... with at least one foo" 14 } 15 }, 16 "Nope": { 17 "type": "string" 18 }, 19 "bars": { 20 "type": "string", 21 "pattern": "(bar)+", 22 "message": { 23 "pattern": "{0}: Must be a string with the a shape barbarbar... with at least one bar" 24 } 25 } 26 } 27 }, 28 "minItems": 1 29 } 30 } 31}