Update schemas to be more strict on providing all the required information.

This commit is contained in:
Mike Auty
2016-12-20 10:49:23 +00:00
parent c6d5eef2f9
commit 76f435e519
2 changed files with 60 additions and 0 deletions
+30
View File
@@ -160,6 +160,10 @@
"$ref": "#/definitions/type_descriptor"
}
},
"required": [
"kind",
"subtype"
],
"additionalProperties": false
},
"type_base": {
@@ -172,6 +176,10 @@
"type": "string"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
},
"type_array": {
@@ -187,6 +195,11 @@
"type": "integer"
}
},
"required": [
"kind",
"subtype",
"count"
],
"additionalProperties": false
},
"type_struct": {
@@ -199,6 +212,10 @@
"type": "string"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
},
"type_enum": {
@@ -211,6 +228,10 @@
"type": "string"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
},
"type_function": {
@@ -220,6 +241,9 @@
"pattern": "^function$"
}
},
"required": [
"kind"
],
"additionalProperties": false
},
"type_bitfield": {
@@ -238,6 +262,12 @@
"$ref": "#/definitions/type_base"
}
},
"required": [
"kind",
"bit_position",
"bit_length",
"type"
],
"additionalProperties": false
}
},
+30
View File
@@ -160,6 +160,10 @@
"$ref": "#/definitions/type_descriptor"
}
},
"required": [
"kind",
"subtype"
],
"additionalProperties": false
},
"type_base": {
@@ -172,6 +176,10 @@
"type": "string"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
},
"type_array": {
@@ -187,6 +195,11 @@
"type": "integer"
}
},
"required": [
"kind",
"subtype",
"count"
],
"additionalProperties": false
},
"type_struct": {
@@ -199,6 +212,10 @@
"type": "string"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
},
"type_enum": {
@@ -211,6 +228,10 @@
"type": "string"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
},
"type_function": {
@@ -220,6 +241,9 @@
"pattern": "^function$"
}
},
"required": [
"kind"
],
"additionalProperties": false
},
"type_bitfield": {
@@ -238,6 +262,12 @@
"$ref": "#/definitions/type_base"
}
},
"required": [
"kind",
"bit_position",
"bit_length",
"type"
],
"additionalProperties": false
}
},