summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-12 16:32:50 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-12 16:34:00 +0100
commitb19171081e23bcccf9b41588c0464ca9c2c657c0 (patch)
tree3b15e18d386332944daf11cc93d323e13ad8f26c
parenta8442778ff400fd9d50cac7944b491c7d641df1f (diff)
downloadhydrilla-json-schemas-b19171081e23bcccf9b41588c0464ca9c2c657c0.tar.gz
hydrilla-json-schemas-b19171081e23bcccf9b41588c0464ca9c2c657c0.zip
facilitate including instance generator software info
-rw-r--r--api_query_result-1.schema.json3
-rw-r--r--api_source_description-1.schema.json3
-rw-r--r--common_definitions-1.schema.json18
3 files changed, 24 insertions, 0 deletions
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"
}
}
}