From 7d1e63d6c249a412fd836c1b3020b304ed809d37 Mon Sep 17 00:00:00 2001 From: SpliiT Date: Tue, 4 Mar 2025 11:56:32 +0100 Subject: [PATCH 1/2] fix(schemas): Add minLength property to these schemas --- .../routes/schemas/allowed_objects.json | 19 ++++++++++++++----- .../routes/schemas/create_point.json | 3 ++- .../geode_objects_and_output_extensions.json | 17 ++++++++++++----- .../geographic_coordinate_systems.json | 13 +++++++++---- .../routes/schemas/inspect_file.json | 17 ++++++++++++----- .../routes/schemas/missing_files.json | 17 ++++++++++++----- .../schemas/polygon_attribute_names.json | 17 ++++++++++++----- .../schemas/polyhedron_attribute_names.json | 17 ++++++++++++----- .../routes/schemas/save_viewable_file.json | 6 ++++-- .../routes/schemas/texture_coordinates.json | 10 ++++------ .../routes/schemas/upload_file.json | 10 +++++++--- .../schemas/vertex_attribute_names.json | 17 ++++++++++++----- 12 files changed, 112 insertions(+), 51 deletions(-) diff --git a/src/opengeodeweb_back/routes/schemas/allowed_objects.json b/src/opengeodeweb_back/routes/schemas/allowed_objects.json index 3a97ae8d..7aadc618 100644 --- a/src/opengeodeweb_back/routes/schemas/allowed_objects.json +++ b/src/opengeodeweb_back/routes/schemas/allowed_objects.json @@ -1,15 +1,24 @@ { "route": "/allowed_objects", - "methods": ["POST"], + "methods": [ + "POST" + ], "type": "object", "properties": { "filename": { - "type": "string" + "type": "string", + "minLength": 1 }, "supported_feature": { - "type": ["string", "null"] + "type": [ + "string", + "null" + ] } }, - "required": ["filename", "supported_feature"], + "required": [ + "filename", + "supported_feature" + ], "additionalProperties": false -} +} \ No newline at end of file diff --git a/src/opengeodeweb_back/routes/schemas/create_point.json b/src/opengeodeweb_back/routes/schemas/create_point.json index c70ba130..9e204def 100644 --- a/src/opengeodeweb_back/routes/schemas/create_point.json +++ b/src/opengeodeweb_back/routes/schemas/create_point.json @@ -6,7 +6,8 @@ "type": "object", "properties": { "title": { - "type": "string" + "type": "string", + "minLength": 1 }, "x": { "type": "number" diff --git a/src/opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.json b/src/opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.json index 9d7cbc3a..8002c3ef 100644 --- a/src/opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.json +++ b/src/opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.json @@ -1,15 +1,22 @@ { "route": "/geode_objects_and_output_extensions", - "methods": ["POST"], + "methods": [ + "POST" + ], "type": "object", "properties": { "input_geode_object": { - "type": "string" + "type": "string", + "minLength": 1 }, "filename": { - "type": "string" + "type": "string", + "minLength": 1 } }, - "required": ["input_geode_object", "filename"], + "required": [ + "input_geode_object", + "filename" + ], "additionalProperties": false -} +} \ No newline at end of file diff --git a/src/opengeodeweb_back/routes/schemas/geographic_coordinate_systems.json b/src/opengeodeweb_back/routes/schemas/geographic_coordinate_systems.json index f391b605..8fcbea82 100644 --- a/src/opengeodeweb_back/routes/schemas/geographic_coordinate_systems.json +++ b/src/opengeodeweb_back/routes/schemas/geographic_coordinate_systems.json @@ -1,12 +1,17 @@ { "route": "/geographic_coordinate_systems", - "methods": ["POST"], + "methods": [ + "POST" + ], "type": "object", "properties": { "input_geode_object": { - "type": "string" + "type": "string", + "minLength": 1 } }, - "required": ["input_geode_object"], + "required": [ + "input_geode_object" + ], "additionalProperties": false -} +} \ No newline at end of file diff --git a/src/opengeodeweb_back/routes/schemas/inspect_file.json b/src/opengeodeweb_back/routes/schemas/inspect_file.json index 9f8b627b..7ea39c23 100644 --- a/src/opengeodeweb_back/routes/schemas/inspect_file.json +++ b/src/opengeodeweb_back/routes/schemas/inspect_file.json @@ -1,15 +1,22 @@ { "route": "/inspect_file", - "methods": ["POST"], + "methods": [ + "POST" + ], "type": "object", "properties": { "filename": { - "type": "string" + "type": "string", + "minLength": 1 }, "input_geode_object": { - "type": "string" + "type": "string", + "minLength": 1 } }, - "required": ["filename", "input_geode_object"], + "required": [ + "filename", + "input_geode_object" + ], "additionalProperties": false -} +} \ No newline at end of file diff --git a/src/opengeodeweb_back/routes/schemas/missing_files.json b/src/opengeodeweb_back/routes/schemas/missing_files.json index cccad35d..825a2d2c 100644 --- a/src/opengeodeweb_back/routes/schemas/missing_files.json +++ b/src/opengeodeweb_back/routes/schemas/missing_files.json @@ -1,15 +1,22 @@ { "route": "/missing_files", - "methods": ["POST"], + "methods": [ + "POST" + ], "type": "object", "properties": { "input_geode_object": { - "type": "string" + "type": "string", + "minLength": 1 }, "filename": { - "type": "string" + "type": "string", + "minLength": 1 } }, - "required": ["input_geode_object", "filename"], + "required": [ + "input_geode_object", + "filename" + ], "additionalProperties": false -} +} \ No newline at end of file diff --git a/src/opengeodeweb_back/routes/schemas/polygon_attribute_names.json b/src/opengeodeweb_back/routes/schemas/polygon_attribute_names.json index 6f1f8b2c..43953bed 100644 --- a/src/opengeodeweb_back/routes/schemas/polygon_attribute_names.json +++ b/src/opengeodeweb_back/routes/schemas/polygon_attribute_names.json @@ -1,15 +1,22 @@ { "route": "/polygon_attribute_names", - "methods": ["POST"], + "methods": [ + "POST" + ], "type": "object", "properties": { "input_geode_object": { - "type": "string" + "type": "string", + "minLength": 1 }, "filename": { - "type": "string" + "type": "string", + "minLength": 1 } }, - "required": ["input_geode_object", "filename"], + "required": [ + "input_geode_object", + "filename" + ], "additionalProperties": false -} +} \ No newline at end of file diff --git a/src/opengeodeweb_back/routes/schemas/polyhedron_attribute_names.json b/src/opengeodeweb_back/routes/schemas/polyhedron_attribute_names.json index b10c7681..11f5c0bd 100644 --- a/src/opengeodeweb_back/routes/schemas/polyhedron_attribute_names.json +++ b/src/opengeodeweb_back/routes/schemas/polyhedron_attribute_names.json @@ -1,15 +1,22 @@ { "route": "/polyhedron_attribute_names", - "methods": ["POST"], + "methods": [ + "POST" + ], "type": "object", "properties": { "input_geode_object": { - "type": "string" + "type": "string", + "minLength": 1 }, "filename": { - "type": "string" + "type": "string", + "minLength": 1 } }, - "required": ["input_geode_object", "filename"], + "required": [ + "input_geode_object", + "filename" + ], "additionalProperties": false -} +} \ No newline at end of file diff --git a/src/opengeodeweb_back/routes/schemas/save_viewable_file.json b/src/opengeodeweb_back/routes/schemas/save_viewable_file.json index d77136b7..253fbb0e 100644 --- a/src/opengeodeweb_back/routes/schemas/save_viewable_file.json +++ b/src/opengeodeweb_back/routes/schemas/save_viewable_file.json @@ -6,10 +6,12 @@ "type": "object", "properties": { "input_geode_object": { - "type": "string" + "type": "string", + "minLength": 1 }, "filename": { - "type": "string" + "type": "string", + "minLength": 1 } }, "required": [ diff --git a/src/opengeodeweb_back/routes/schemas/texture_coordinates.json b/src/opengeodeweb_back/routes/schemas/texture_coordinates.json index 878127b2..36a92964 100644 --- a/src/opengeodeweb_back/routes/schemas/texture_coordinates.json +++ b/src/opengeodeweb_back/routes/schemas/texture_coordinates.json @@ -6,14 +6,12 @@ "type": "object", "properties": { "input_geode_object": { - "type": [ - "string" - ] + "type": "string", + "minLength": 1 }, "filename": { - "type": [ - "string" - ] + "type": "string", + "minLength": 1 } }, "required": [ diff --git a/src/opengeodeweb_back/routes/schemas/upload_file.json b/src/opengeodeweb_back/routes/schemas/upload_file.json index 2cd46a28..d2efa345 100644 --- a/src/opengeodeweb_back/routes/schemas/upload_file.json +++ b/src/opengeodeweb_back/routes/schemas/upload_file.json @@ -1,11 +1,15 @@ { "route": "/upload_file", - "methods": ["OPTIONS", "PUT"], + "methods": [ + "OPTIONS", + "PUT" + ], "type": "object", "properties": { "filename": { - "type": "string" + "type": "string", + "minLength": 1 } }, "additionalProperties": false -} +} \ No newline at end of file diff --git a/src/opengeodeweb_back/routes/schemas/vertex_attribute_names.json b/src/opengeodeweb_back/routes/schemas/vertex_attribute_names.json index 963597af..cad442eb 100644 --- a/src/opengeodeweb_back/routes/schemas/vertex_attribute_names.json +++ b/src/opengeodeweb_back/routes/schemas/vertex_attribute_names.json @@ -1,15 +1,22 @@ { "route": "/vertex_attribute_names", - "methods": ["POST"], + "methods": [ + "POST" + ], "type": "object", "properties": { "input_geode_object": { - "type": "string" + "type": "string", + "minLength": 1 }, "filename": { - "type": "string" + "type": "string", + "minLength": 1 } }, - "required": ["input_geode_object", "filename"], + "required": [ + "input_geode_object", + "filename" + ], "additionalProperties": false -} +} \ No newline at end of file From ee6714f7935770a228893e3ff3096136145e366b Mon Sep 17 00:00:00 2001 From: semantic-release Date: Tue, 4 Mar 2025 12:28:57 +0000 Subject: [PATCH 2/2] 5.6.1-rc.1 Automatically generated by python-semantic-release --- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5817c391..f2f16a4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # CHANGELOG +## v5.6.1-rc.1 (2025-03-04) + +### Bug Fixes + +- **schemas**: Add minLength property to these schemas + ([`7d1e63d`](https://github.com/Geode-solutions/OpenGeodeWeb-Back/commit/7d1e63d6c249a412fd836c1b3020b304ed809d37)) + + ## v5.6.0 (2025-02-28) diff --git a/pyproject.toml b/pyproject.toml index 7686eb68..311fabc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "OpenGeodeWeb-Back" -version = "5.6.0" +version = "5.6.1-rc.1" dynamic = ["dependencies"] authors = [ { name="Geode-solutions", email="team-web@geode-solutions.com" },