Skip to content

Commit

Permalink
fix: remove required fields from facets
Browse files Browse the repository at this point in the history
resolves #263
The nested required fields in the facets swagger definition are not
allowed. Removed this for the moment to create a valid schema.
  • Loading branch information
sennierer committed Dec 4, 2024
1 parent a2255eb commit 6bf3c98
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apis_ontology/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,9 @@ def get_paginated_response_schema(self, schema):
"properties": {
"key": {
"type": "string",
"required": True,
},
"count": {
"type": "integer",
"required": True,
},
},
},
Expand All @@ -256,11 +254,9 @@ def get_paginated_response_schema(self, schema):
"properties": {
"key": {
"type": "string",
"required": True,
},
"count": {
"type": "integer",
"required": True,
},
},
},
Expand All @@ -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",
Expand Down

0 comments on commit 6bf3c98

Please sign in to comment.