{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "array", "oneOf": [ { "minItems": 1, "maxItems": 1, "items": { "$ref": "#/$defs/staticFrame", "unevaluatedProperties": false } }, { "minItems": 2, "items": { "$ref": "#/$defs/staticFrame", "unevaluatedProperties": false, "properties": { "delay": { "type": "number", "exclusiveMinimum": 0 } }, "required": ["delay"] } } ], "$defs": { "staticFrame": { "type": "object", "properties": { "filename": { "type": "string" }, "hotspot_x": { "type": "number" }, "hotspot_y": { "type": "number" }, "nominal_size": { "type": "number", "exclusiveMinimum": 0 } }, "required": ["filename", "hotspot_x", "hotspot_y", "nominal_size"] } } }