diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-03-08 16:22:47 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-03-08 16:26:36 +0100 |
commit | b2c167f1c7713785813ff4cd93aff3cd235f4ffe (patch) | |
tree | 01e0fee40cf6ae874d81b79d333bba40260ea12d | |
parent | 6a7f4f337729688c45e23bb8305c4ac46ccb0586 (diff) | |
download | haketilo-hydrilla-b2c167f1c7713785813ff4cd93aff3cd235f4ffe.tar.gz haketilo-hydrilla-b2c167f1c7713785813ff4cd93aff3cd235f4ffe.zip |
don't include schema patch version number in generated instancesv1.0-beta2
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | src/hydrilla/server/serve.py | 2 | ||||
-rw-r--r-- | src/test/test_server.py | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -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', |