Fix externalDocs entries
My externalDocs entries in the "tags" metadata section of the OpenAPI description were not valid. This is now fixed.
This commit is contained in:
parent
8eba9d7981
commit
38fbe530d2
1 changed files with 8 additions and 5 deletions
|
|
@ -9,7 +9,10 @@ API_TAGS = [
|
||||||
"as `Action` objects and their status can be queried using the links "
|
"as `Action` objects and their status can be queried using the links "
|
||||||
"embedded in the JSON action description."
|
"embedded in the JSON action description."
|
||||||
),
|
),
|
||||||
"externalDocs": "https://iot.mozilla.org/wot/#action-resource",
|
"externalDocs": {
|
||||||
|
"url": "https://iot.mozilla.org/wot/#action-resource",
|
||||||
|
"description": "Mozilla's description of Web of Things 'Action' resources."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "properties",
|
"name": "properties",
|
||||||
|
|
@ -17,22 +20,22 @@ API_TAGS = [
|
||||||
"Properties can be read and/or written to, and affect the "
|
"Properties can be read and/or written to, and affect the "
|
||||||
"state of the microscope."
|
"state of the microscope."
|
||||||
),
|
),
|
||||||
"externalDocs": "https://iot.mozilla.org/wot/#property-resource",
|
"externalDocs": {
|
||||||
|
"url": "https://iot.mozilla.org/wot/#property-resource",
|
||||||
|
"description": "Mozilla's description of Web of Things 'Property' resources."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "captures",
|
"name": "captures",
|
||||||
"description": "",
|
"description": "",
|
||||||
"externalDocs": ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "extensions",
|
"name": "extensions",
|
||||||
"description": "",
|
"description": "",
|
||||||
"externalDocs": ""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "events",
|
"name": "events",
|
||||||
"description": "",
|
"description": "",
|
||||||
"externalDocs": ""
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue