diff --git a/schemas/proc_cert_model_schema.json b/schemas/proc_cert_model_schema.json index a489454cb..6f1636ee2 100644 --- a/schemas/proc_cert_model_schema.json +++ b/schemas/proc_cert_model_schema.json @@ -81,19 +81,7 @@ "description": "Reference to the class this model belongs to" }, "versions": { - "type": "array", - "items": { - "type": "object", - "required": ["version"], - "properties": { - "version": { - "$ref": "schema_defs.json#/$defs/semantic_version" - } - }, - "additionalProperties": false - }, - "minItems": 1, - "description": "List of semantic versions within the model" + "$ref": "schema_defs.json#/$defs/versions" }, "base": { "type": "integer", diff --git a/schemas/profile_release_schema.json b/schemas/profile_release_schema.json index 0bacc3900..d9fbb9ff7 100644 --- a/schemas/profile_release_schema.json +++ b/schemas/profile_release_schema.json @@ -19,6 +19,10 @@ "long name": { "type": "string", "description": "One line description of this Profile Release" + }, + "versions": { + "$ref": "schema_defs.json#/$defs/versions" } - } + }, + "additionalProperties": false } diff --git a/schemas/profile_schema.json b/schemas/profile_schema.json index c7936f491..96a542134 100644 --- a/schemas/profile_schema.json +++ b/schemas/profile_schema.json @@ -30,5 +30,6 @@ "cert_test_procedures": { "$ref": "schema_defs.json#/$defs/cert_test_procedures" } - } + }, + "additionalProperties": false } diff --git a/schemas/schema_defs.json b/schemas/schema_defs.json index 8560534e6..29009240c 100644 --- a/schemas/schema_defs.json +++ b/schemas/schema_defs.json @@ -374,6 +374,21 @@ }, "additionalProperties": false } + }, + "versions": { + "type": "array", + "items": { + "type": "object", + "required": ["version"], + "properties": { + "version": { + "$ref": "schema_defs.json#/$defs/semantic_version" + } + }, + "additionalProperties": false + }, + "minItems": 1, + "description": "List of semantic versions" } } }