From 2f91cf32b7846d8b03dbe9e1aedc516acfab8d4f Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 7 Nov 2016 12:26:34 +0000 Subject: [PATCH] Make the schema a little more strict. --- volatility/schemas/schema-0.1.0.json | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/volatility/schemas/schema-0.1.0.json b/volatility/schemas/schema-0.1.0.json index a04f8345c..0c5449805 100644 --- a/volatility/schemas/schema-0.1.0.json +++ b/volatility/schemas/schema-0.1.0.json @@ -72,6 +72,12 @@ "additionalProperties": false }, "element_base_type": { + "properties": { + "length": { + "type": "integer" + } + }, + "additionalProperties": false }, "element_user_type": { "properties": { @@ -100,8 +106,12 @@ "properties": { "type": { "$ref": "#/definitions/type_descriptor" + }, + "offset": { + "type": "integer" } - } + }, + "additionalProperties": false }, "type_descriptor": { "oneOf": [ @@ -133,8 +143,12 @@ "kind": { "type": "string", "pattern": "^pointer$" + }, + "subtype": { + "$ref": "#/definitions/type_descriptor" } - } + }, + "additionalProperties": false }, "type_base": { "properties": { @@ -193,7 +207,8 @@ "type": "string", "pattern": "^function$" } - } + }, + "additionalProperties": false }, "type_bitfield": { "properties": {