Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Key in URI breaks OpenAPI generation #38

Open
egekorkan opened this issue Apr 26, 2023 · 0 comments
Open

API Key in URI breaks OpenAPI generation #38

egekorkan opened this issue Apr 26, 2023 · 0 comments
Labels

Comments

@egekorkan
Copy link
Member

The TD below breaks OpenAPI generation:

{
    "@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"
                    ]
                }
            ]
        }
    }
}
@egekorkan egekorkan transferred this issue from eclipse-thingweb/playground Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant