From f5fd82f430d765f3ed76104133ebee5d8375dc03 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 14 Feb 2022 11:11:50 +0100 Subject: specify full schema URL in instances --- src/hydrilla/server/serve.py | 2 +- src/test/source-package-example | 2 +- src/test/test_server.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py index 8a2b3a5..bb53c0a 100644 --- a/src/hydrilla/server/serve.py +++ b/src/hydrilla/server/serve.py @@ -537,7 +537,7 @@ def query(): mapping_refs = [i.as_query_result() for i in malcontent().query(url)] result = { - 'api_schema_version': [1], + '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json', 'mappings': mapping_refs, 'generated_by': generated_by } diff --git a/src/test/source-package-example b/src/test/source-package-example index 26c4622..48606f2 160000 --- a/src/test/source-package-example +++ b/src/test/source-package-example @@ -1 +1 @@ -Subproject commit 26c4622417cb786825b1b18083adfe5ce44b2756 +Subproject commit 48606f288c89aaadb28a021ab71945e1e87fd14e diff --git a/src/test/test_server.py b/src/test/test_server.py index f7dc06e..bbea257 100644 --- a/src/test/test_server.py +++ b/src/test/test_server.py @@ -147,7 +147,7 @@ def test_empty_query(client: FlaskClient) -> None: response_object = json.loads(response.data.decode()) assert response_object == { - 'api_schema_version': [1], + '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json', 'mappings': [], 'generated_by': expected_generated_by } @@ -166,7 +166,7 @@ def test_query(client: FlaskClient) -> None: response_object = json.loads(response.data.decode()) assert response_object == { - 'api_schema_version': [1], + '$schema': 'https://hydrilla.koszko.org/schemas/api_query_result-1.schema.json', 'mappings': [{ 'identifier': 'helloapple', 'long_name': 'Hello Apple', -- cgit v1.2.3