HB, OTA etc
This commit is contained in:
29
contract/ingest/command.schema.json
Normal file
29
contract/ingest/command.schema.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"$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}$" }
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user