From 6bf3c98604e54b4d85dbfb851ca2a8bcca82492a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Schl=C3=B6gl?= Date: Wed, 4 Dec 2024 10:51:07 +0100 Subject: [PATCH] fix: remove required fields from facets resolves #263 The nested required fields in the facets swagger definition are not allowed. Removed this for the moment to create a valid schema. --- apis_ontology/api/views.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apis_ontology/api/views.py b/apis_ontology/api/views.py index d2de6fe..9eec6f8 100644 --- a/apis_ontology/api/views.py +++ b/apis_ontology/api/views.py @@ -233,11 +233,9 @@ def get_paginated_response_schema(self, schema): "properties": { "key": { "type": "string", - "required": True, }, "count": { "type": "integer", - "required": True, }, }, }, @@ -256,11 +254,9 @@ def get_paginated_response_schema(self, schema): "properties": { "key": { "type": "string", - "required": True, }, "count": { "type": "integer", - "required": True, }, }, }, @@ -279,15 +275,12 @@ def get_paginated_response_schema(self, schema): "properties": { "id": { "type": "integer", - "required": True, }, "key": { "type": "string", - "required": True, }, "count": { "type": "integer", - "required": True, }, "children": { "type": "array",