forked from M-Labs/artiq
1
0
Fork 0

jsonschema: only allow enable_sata_drtio=true for Kasli if v1.0/1.1

This commit is contained in:
Harry Ho 2021-05-17 12:21:08 +08:00 committed by Sébastien Bourdeauducq
parent 935e18c1be
commit 43b2a3791c
1 changed files with 20 additions and 0 deletions

View File

@ -71,6 +71,26 @@
} }
} }
}, },
"if": {
"properties": {
"target": { "const": "kasli" },
"hw_rev": {
"not": {
"oneOf": [
{ "const": "v1.0" },
{ "const": "v1.1" }
]
}
}
}
},
"then": {
"properties": {
"enable_sata_drtio": {
"const": false
}
}
},
"required": ["target", "variant", "hw_rev", "base", "peripherals"], "required": ["target", "variant", "hw_rev", "base", "peripherals"],
"additionalProperties": false, "additionalProperties": false,