From b2c167f1c7713785813ff4cd93aff3cd235f4ffe Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 8 Mar 2022 16:22:47 +0100 Subject: don't include schema patch version number in generated instances --- setup.cfg | 2 +- src/hydrilla/server/serve.py | 2 +- src/test/test_server.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index 34ee67a..5855f1a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,7 +35,7 @@ packages = find: include_package_data=True python_requires = >= 3.7 install_requires = - hydrilla.builder==1.0b2.dev1+g9271ca7 + hydrilla.builder==1.0b2 flask jsonschema>=3.0 diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py index 683b95b..6cb98c2 100644 --- a/src/hydrilla/server/serve.py +++ b/src/hydrilla/server/serve.py @@ -549,7 +549,7 @@ def query(): mapping_refs = [i.as_query_result() for i in malcontent().query(url)] result = { - '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.0.1.schema.json', + '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json', 'mappings': mapping_refs, 'generated_by': generated_by } diff --git a/src/test/test_server.py b/src/test/test_server.py index 3107cfb..1da5663 100644 --- a/src/test/test_server.py +++ b/src/test/test_server.py @@ -210,7 +210,7 @@ def test_empty_query() -> None: response_object = json.loads(response.data.decode()) assert response_object == { - '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.0.1.schema.json', + '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json', 'mappings': [], 'generated_by': expected_generated_by } @@ -229,7 +229,7 @@ def test_query() -> None: response_object = json.loads(response.data.decode()) assert response_object == { - '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.0.1.schema.json', + '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json', 'mappings': [{ 'identifier': 'helloapple', 'long_name': 'Hello Apple', -- cgit v1.2.3