diff --git a/apis_ontology/api/views.py b/apis_ontology/api/views.py index 9be9a06..cc19a86 100644 --- a/apis_ontology/api/views.py +++ b/apis_ontology/api/views.py @@ -127,8 +127,14 @@ def get_paginated_response_schema(self, schema): "items": { "type": "object", "properties": { - "key": {"type": "string"}, - "count": {"type": "integer"}, + "key": { + "type": "string", + "required": True, + }, + "count": { + "type": "integer", + "required": True, + }, }, }, "example": [{"key": "eng", "count": 100}], @@ -139,8 +145,14 @@ def get_paginated_response_schema(self, schema): "items": { "type": "object", "properties": { - "key": {"type": "string"}, - "count": {"type": "integer"}, + "key": { + "type": "string", + "required": True, + }, + "count": { + "type": "integer", + "required": True, + }, }, }, "example": [{"key": "Traum", "count": 3}],