mirror of
https://github.com/GNS3/gns3-registry.git
synced 2025-01-29 15:43:55 +00:00
Fix check.py
This commit is contained in:
parent
d183a8790a
commit
674a7c10d1
2
check.py
2
check.py
@ -78,7 +78,7 @@ def check_appliance(appliance):
|
|||||||
schema_filename = "schemas/appliance_v{}.json".format(version)
|
schema_filename = "schemas/appliance_v{}.json".format(version)
|
||||||
with open(schema_filename) as f:
|
with open(schema_filename) as f:
|
||||||
schemas[version] = json.load(f)
|
schemas[version] = json.load(f)
|
||||||
#no_additional_properties(schemas[version])
|
no_additional_properties(schemas[version])
|
||||||
|
|
||||||
with open(os.path.join('appliances', appliance)) as f:
|
with open(os.path.join('appliances', appliance)) as f:
|
||||||
appliance_json = json.load(f)
|
appliance_json = json.load(f)
|
||||||
|
@ -14,6 +14,12 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"appliance_id": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 36,
|
||||||
|
"maxLength": 36,
|
||||||
|
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
|
||||||
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Appliance name"
|
"title": "Appliance name"
|
||||||
@ -430,6 +436,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"name",
|
"name",
|
||||||
"category",
|
"category",
|
||||||
|
@ -14,6 +14,12 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"appliance_id": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 36,
|
||||||
|
"maxLength": 36,
|
||||||
|
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
|
||||||
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Appliance name"
|
"title": "Appliance name"
|
||||||
|
@ -14,6 +14,12 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"appliance_id": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 36,
|
||||||
|
"maxLength": 36,
|
||||||
|
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
|
||||||
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Appliance name"
|
"title": "Appliance name"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user