Skip to content

Commit

Permalink
fix(api): add swagger def for topic facet
Browse files Browse the repository at this point in the history
fixes gitlab issue 177
  • Loading branch information
sennierer committed Aug 20, 2024
1 parent f9aa81e commit 3745d17
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apis_ontology/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ def get_paginated_response_schema(self, schema):
},
"example": [{"key": "eng", "count": 100}],
},
"topic": {
"type": "array",
"nullable": True,
"items": {
"type": "object",
"properties": {
"key": {"type": "string"},
"count": {"type": "integer"},
},
},
"example": [{"key": "Traum", "count": 3}],
},
},
"type": "object",
"nullable": True,
Expand Down

0 comments on commit 3745d17

Please sign in to comment.