From b19171081e23bcccf9b41588c0464ca9c2c657c0 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 12 Feb 2022 16:32:50 +0100 Subject: facilitate including instance generator software info --- api_query_result-1.schema.json | 3 +++ api_source_description-1.schema.json | 3 +++ common_definitions-1.schema.json | 18 ++++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/api_query_result-1.schema.json b/api_query_result-1.schema.json index 4d7dcbd..62144dd 100644 --- a/api_query_result-1.schema.json +++ b/api_query_result-1.schema.json @@ -18,6 +18,9 @@ "items": { "$ref": "./common_definitions-1.schema.json#/definitions/item_ref" } + }, + "generated_by": { + "$ref": "./common_definitions-1.schema.json#/definitions/generated_by" } } } diff --git a/api_source_description-1.schema.json b/api_source_description-1.schema.json index a8f6473..c153d3a 100644 --- a/api_source_description-1.schema.json +++ b/api_source_description-1.schema.json @@ -56,6 +56,9 @@ "items": { "$ref": "./common_definitions-1.schema.json#/definitions/typed_item_ref" } + }, + "generated_by": { + "$ref": "./common_definitions-1.schema.json#/definitions/generated_by" } } } diff --git a/common_definitions-1.schema.json b/common_definitions-1.schema.json index 9d4e146..c47c7ab 100644 --- a/common_definitions-1.schema.json +++ b/common_definitions-1.schema.json @@ -208,6 +208,21 @@ } }] }, + "generated_by": { + "description": "Describe what software generated this instance", + "type": "object", + "required": ["name"], + "properties": { + "name": { + "type": "string", + "description": "Instance generator software name, without version" + }, + "version": { + "type": "string", + "description": "Instance generator software version, in arbitrary format" + } + } + }, "item_definition": { "description": "Definition of a resource/mapping (fields specific to built definitions)", "type": "object", @@ -226,6 +241,9 @@ "source_copyright": { "description": "Which files indicate license terms of the source package and should be installed", "$ref": "#/definitions/file_ref_list_sha256" + }, + "generated_by": { + "$ref": "#/definitions/generated_by" } } } -- cgit v1.2.3