29 lines
578 B
JSON
29 lines
578 B
JSON
{
|
|
"$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}$" }
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |