Skip to content

Commit b67e135

Browse files
Modify Schema to make endpoints mandatory and to add the debug field (#3199)
1 parent 05cac29 commit b67e135

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

schemas/clab.schema.json

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,16 @@
733733
"type": "array",
734734
"description": "endpoints list",
735735
"markdownDescription": "[endpoints](http://localhost:8000/manual/topo-def-file/#links) list",
736-
"minItems": 2,
737-
"items": {
738-
"type": "string",
739-
"pattern": "^\\S+:\\S+$"
740-
},
736+
"prefixItems": [
737+
{
738+
"type": "string",
739+
"pattern": "^\\S+:\\S+$"
740+
},
741+
{
742+
"type": "string",
743+
"pattern": "^\\S+:\\S+$"
744+
}
745+
],
741746
"uniqueItems": true
742747
},
743748
"mtu": {
@@ -769,6 +774,9 @@
769774
"$ref": "#/definitions/link-vars"
770775
}
771776
},
777+
"required": [
778+
"endpoints"
779+
],
772780
"additionalProperties": false
773781
},
774782
"link-type-veth": {
@@ -2199,6 +2207,17 @@
21992207
}
22002208
},
22012209
"additionalProperties": false
2210+
},
2211+
"debug": {
2212+
"description": "Boolean flag to enable debug mode for the topology",
2213+
"oneOf": [
2214+
{
2215+
"type": "null"
2216+
},
2217+
{
2218+
"type": "boolean"
2219+
}
2220+
]
22022221
}
22032222
},
22042223
"additionalProperties": false,

0 commit comments

Comments
 (0)