Problems with Json Schema Validator

Hey :slight_smile:,

I have some problems with the Json Schema Validator node. It only seems to return the errors on the highest level, errors more nested get ignored, until the outer errors are fixed.

Schema:

{
   "type": "object",
   "title": "The Root Schema",
   "properties": {
      "country": {
         "type": "string",
         "maxLength": 2
      },
      "id": {
         "type": "string",
         "maxLength": 3
      },
      "state": {
         "type": "array",
         "items": {
            "type": "object",
            "properties": {
               "name": {
                  "type": "string",
                  "maxLength": 16
               },
               "id": {
                  "type": "string",
                  "maxLength": 16

               }
}
}
}
}
}
	{
		"country": "BbE",
		"id": "BEC",
		"state": [
			{
				"name": "sadasd",
				"id": "1235613"
			},
			{
				"name": "asdasd",
				"id": "415sdddddddddd6348"
			}
		]
	}

Should raise multiple errors on this json file (2nd state id is too long as well), but only raises 1 error. If you fix the country length, the 2nd get error gets shown.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.