{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "contract/ingest/command.schema.json", "type": "object", "required": ["t"], "additionalProperties": false, "properties": { "t": { "type": "string", "enum": ["fw"] } }, "allOf": [ { "if": { "properties": { "t": { "const": "fw" } } }, "then": { "required": ["u", "s"], "properties": { "u": { "type": "string", "format": "uri" }, "s": { "type": "string", "pattern": "^[a-f0-9]{64}$" } } } } ] }