diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-14 10:45:18 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-14 10:45:18 +0100 |
commit | 1d1c93d5a9011ecdf58a4952afcb5a1faff30e76 (patch) | |
tree | 2e03dffe1fbd35c885948a9ca6276262f6534301 /package_source-1.schema.json | |
parent | b19171081e23bcccf9b41588c0464ca9c2c657c0 (diff) | |
download | hydrilla-json-schemas-1d1c93d5a9011ecdf58a4952afcb5a1faff30e76.tar.gz hydrilla-json-schemas-1d1c93d5a9011ecdf58a4952afcb5a1faff30e76.zip |
specify full schema URL in instances
Diffstat (limited to 'package_source-1.schema.json')
-rw-r--r-- | package_source-1.schema.json | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/package_source-1.schema.json b/package_source-1.schema.json index fb2bfb7..e7e0064 100644 --- a/package_source-1.schema.json +++ b/package_source-1.schema.json @@ -5,15 +5,17 @@ "description": "Definition of a Hydrilla source package", "type": "object", "required": [ - "source_schema_version", + "$schema", "source_name", "copyright", "upstream_url", "definitions" ], "properties": { - "source_schema_version": { - "$ref": "./common_definitions-1.schema.json#/definitions/schema_version" + "$schema": { + "description": "Mark this instance as conforming to package source schema 1.x", + "type": "string", + "pattern": "^https://hydrilla\\.koszko\\.org/schemas/package_source-1\\.([1-9][0-9]*\\.)*schema\\.json$" }, "source_name": { "$ref": "./common_definitions-1.schema.json#/definitions/source_name" |