aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/builder/build.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-03-01 09:32:54 +0100
committerWojtek Kosior <koszko@koszko.org>2022-03-01 09:48:53 +0100
commit9271ca7b8a8364423008ee400be541217b401c3c (patch)
treef7d6cf55de372a45151b68e46db1d7467640ac0d /src/hydrilla/builder/build.py
parentc1c7f9695d26b90dfe342601f57c4cd1b92fb901 (diff)
downloadhydrilla-builder-9271ca7b8a8364423008ee400be541217b401c3c.tar.gz
hydrilla-builder-9271ca7b8a8364423008ee400be541217b401c3c.zip
update schema versions to 1.0.1
Diffstat (limited to 'src/hydrilla/builder/build.py')
-rw-r--r--src/hydrilla/builder/build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hydrilla/builder/build.py b/src/hydrilla/builder/build.py
index 5a46259..1cf2ca8 100644
--- a/src/hydrilla/builder/build.py
+++ b/src/hydrilla/builder/build.py
@@ -44,7 +44,7 @@ here = Path(__file__).resolve().parent
_ = util.translation(here / 'locales').gettext
-index_validator = util.validator_for('package_source-1.schema.json')
+index_validator = util.validator_for('package_source-1.0.1.schema.json')
schemas_root = 'https://hydrilla.koszko.org/schemas'
@@ -290,7 +290,7 @@ class Build:
new_item_obj.update([(p, item_def[p]) for p in copy_props])
new_item_obj['version'] = util.normalize_version(item_def['version'])
- new_item_obj['$schema'] = f'{schemas_root}/api_{item_def["type"]}_description-1.schema.json'
+ new_item_obj['$schema'] = f'{schemas_root}/api_{item_def["type"]}_description-1.0.1.schema.json'
new_item_obj['source_copyright'] = self.copyright_file_refs
new_item_obj['source_name'] = self.source_name
new_item_obj['generated_by'] = generated_by
@@ -309,7 +309,7 @@ class Build:
"""
index_validator.validate(index_obj)
- schema = f'{schemas_root}/api_source_description-1.schema.json'
+ schema = f'{schemas_root}/api_source_description-1.0.1.schema.json'
self.source_name = index_obj['source_name']