summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-03-08 16:22:47 +0100
committerWojtek Kosior <koszko@koszko.org>2022-03-08 16:26:36 +0100
commitb2c167f1c7713785813ff4cd93aff3cd235f4ffe (patch)
tree01e0fee40cf6ae874d81b79d333bba40260ea12d /src
parent6a7f4f337729688c45e23bb8305c4ac46ccb0586 (diff)
downloadhaketilo-hydrilla-b2c167f1c7713785813ff4cd93aff3cd235f4ffe.tar.gz
haketilo-hydrilla-b2c167f1c7713785813ff4cd93aff3cd235f4ffe.zip
don't include schema patch version number in generated instancesv1.0-beta2
Diffstat (limited to 'src')
-rw-r--r--src/hydrilla/server/serve.py2
-rw-r--r--src/test/test_server.py4
2 files changed, 3 insertions, 3 deletions
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',