I've not done a lot with JSON Schemas and I researched this but haven't found an answer (I even downloaded the ECMS-262 Standard). I'm working on a JSON report program and the schema author just changed on of the definitions:
"type":{
"id":"http://dummyurl/type",
"type":"string",
"pattern":"^[a-zA-Z]{0,}$",
"enum":[
"XType",
"Charge",
"Prince"
The change was from {1,} to {0,} in the pattern.
My two questions are:
- what does the change from
{1,}to{0,}accomplish? - with the enum what does the pattern do?