eclipse-thingweb / eclipse-thingweb/td-tools

API Key in URI breaks OpenAPI generation

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
openapi
Dominant language
TypeScript
Stars
6
Forks
11
Avg merge
1d 15h
Merged PRs (30d)
4

Description

The TD below breaks OpenAPI generation:
```json
{
"@context": [
"https://www.w3.org/2019/wot/td/v1",
"https://www.w3.org/2022/wot/td/v1.1",
{
"@language": "en"
}
],
"title": "DaylightSensor",
"security": "api_sc",
"securityDefinitions": {
"api_sc": {
"scheme": "apikey",
"in": "uri",
"name": "hueKey"
}
},
"id": "urn:dev:ops:32473-HueDaylight-1234",
"description": "Daylight information based on the GPS coordinates of the Hue Bridge",
"properties": {
"sensorInformation": {
"title": "Sensor Information",
"description": "State, config and other metadata about the sensor",
"type": "object",
"readOnly": true,
"writeOnly": false,
"forms": [
{
"href": "https://esiremotelab.esi.ei.tum.de:8081/LabLocal/api/{hueKey}/sensors/1",
"contentType": "application/json",
"op": [
"readproperty"
]
}
]
}
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.