I've a JSON Schema and a sample input. I need to write a generic schema which can handle the array regardless the length of the array. Currently, I need to write schema for each of the index in the array.
JSON Schema
{ "title":"Example", "$schema":"http://json-schema.org/draft-04/schema#", "type":"array", "items":[ { "oneOf":[ { "multipleOf": 3 } ] }, { "oneOf":[ { "multipleOf": 3 }, { "multipleOf": 5 } ] } ] } Sample Input
[ 3, 5 ] I need a schema which can validate [1,3,5,6,3,5,4,......] (regardless the length)