diff --git a/.gitignore b/.gitignore index 3ec5f1bc663..5b8a7c8b336 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,6 @@ node_modules /test/integration/generate/models/ test.asyncapi-cli asyncapi.json -asyncapi.yml test/fixtures/minimaltemplate/__transpiled .vscode diff --git a/github-action/test/asyncapi.yml b/github-action/test/asyncapi.yml new file mode 100644 index 00000000000..9ef74d1104b --- /dev/null +++ b/github-action/test/asyncapi.yml @@ -0,0 +1,37 @@ +asyncapi: '2.0.0' +info: + title: Streetlights API + version: '1.0.0' + description: | + The Smartylighting Streetlights API allows you + to remotely manage the city lights. + license: + name: Apache 2.0 + url: 'https://www.apache.org/licenses/LICENSE-2.0' + +servers: + mosquitto: + url: mqtt://test.mosquitto.org + protocol: mqtt + +channels: + light/measured: + publish: + summary: Inform about environmental lighting conditions for a particular streetlight. + operationId: onLightMeasured + message: + payload: + type: object + properties: + id: + type: integer + minimum: 0 + description: Id of the streetlight. + lumens: + type: integer + minimum: 0 + description: Light intensity measured in lumens. + sentAt: + type: string + format: date-time + description: Date and time when the message was sent.