Sorted remaining content_type issues and blackened

This commit is contained in:
Richard 2021-07-19 20:09:09 +01:00
parent 38fbe530d2
commit b7c9d3b73b
13 changed files with 114 additions and 92 deletions

View file

@ -1,5 +1,3 @@
API_TAGS = [
{
"name": "actions",
@ -11,8 +9,8 @@ API_TAGS = [
),
"externalDocs": {
"url": "https://iot.mozilla.org/wot/#action-resource",
"description": "Mozilla's description of Web of Things 'Action' resources."
}
"description": "Mozilla's description of Web of Things 'Action' resources.",
},
},
{
"name": "properties",
@ -22,23 +20,15 @@ API_TAGS = [
),
"externalDocs": {
"url": "https://iot.mozilla.org/wot/#property-resource",
"description": "Mozilla's description of Web of Things 'Property' resources."
}
"description": "Mozilla's description of Web of Things 'Property' resources.",
},
},
{
"name": "captures",
"description": "",
},
{
"name": "extensions",
"description": "",
},
{
"name": "events",
"description": "",
}
{"name": "captures", "description": ""},
{"name": "extensions", "description": ""},
{"name": "events", "description": ""},
]
def add_spec_extras(spec):
"""Add extra documentation and features to the OpenAPI spec"""
# Add a list of tags, so we can control ordering and add descriptions