mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
jsonschema: mirny: accept string enums for validating clk_sel
This commit is contained in:
parent
75efb8985c
commit
5f32cb7196
@ -364,17 +364,26 @@
|
|||||||
"minItems": 1,
|
"minItems": 1,
|
||||||
"maxItems": 1
|
"maxItems": 1
|
||||||
},
|
},
|
||||||
"refclk": {
|
"refclk": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"exclusiveMinimum": 0,
|
"exclusiveMinimum": 0,
|
||||||
"default": 100e6
|
"default": 100e6
|
||||||
},
|
},
|
||||||
"clk_sel": {
|
"clk_sel": {
|
||||||
"type": "integer",
|
"oneOf": [
|
||||||
"minimum": 0,
|
{
|
||||||
"maximum": 3,
|
"type": "integer",
|
||||||
"default": 0
|
"minimum": 0,
|
||||||
}
|
"maximum": 3,
|
||||||
|
"default": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["xo", "mmcx", "sma"],
|
||||||
|
"default": "xo"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"required": ["ports"]
|
"required": ["ports"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user