Skip to content

Commit

Permalink
Merge master into changeset-release/master
Browse files Browse the repository at this point in the history
  • Loading branch information
asyncapi-bot-eve authored Dec 5, 2023
2 parents 2e33902 + b0ba3b4 commit 22ca8b3
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions apps/studio/src/state/files.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,51 @@ const schema =
localStorage.getItem('document') || `asyncapi: 3.0.0
info:
title: Streetlights Kafka API
version: '1.0.0'
description: |
The Smartylighting Streetlights API allows you to remotely manage the city lights.
version: 1.0.0
description: >
The Smartylighting Streetlights API allows you to remotely manage the city
lights.
### Check out its awesome features:
* Turn a specific streetlight on/off 🌃
* Turn a specific streetlight on/off 🌃
* Dim a specific streetlight 😎
* Receive real-time information about environmental lighting conditions 📈
license:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0'
url: https://www.apache.org/licenses/LICENSE-2.0
defaultContentType: application/json
servers:
scram-connections:
host: 'test.mykafkacluster.org:18092'
host: test.mykafkacluster.org:18092
protocol: kafka-secure
description: Test broker secured with scramSha256
security:
- $ref: '#/components/securitySchemes/saslScram'
tags:
- name: 'env:test-scram'
- name: env:test-scram
description: >-
This environment is meant for running internal tests through
scramSha256
- name: 'kind:remote'
- name: kind:remote
description: This server is a remote server. Not exposed by the application
- name: 'visibility:private'
- name: visibility:private
description: This resource is private and only available to certain users
mtls-connections:
host: 'test.mykafkacluster.org:28092'
host: test.mykafkacluster.org:28092
protocol: kafka-secure
description: Test broker secured with X509
security:
- $ref: '#/components/securitySchemes/certs'
tags:
- name: 'env:test-mtls'
- name: env:test-mtls
description: This environment is meant for running internal tests through mtls
- name: 'kind:remote'
- name: kind:remote
description: This server is a remote server. Not exposed by the application
- name: 'visibility:private'
- name: visibility:private
description: This resource is private and only available to certain users
channels:
lightingMeasured:
address: 'smartylighting.streetlights.1.0.event.{streetlightId}.lighting.measured'
address: smartylighting.streetlights.1.0.event.{streetlightId}.lighting.measured
messages:
lightMeasured:
$ref: '#/components/messages/lightMeasured'
Expand All @@ -55,23 +57,23 @@ channels:
streetlightId:
$ref: '#/components/parameters/streetlightId'
lightTurnOn:
address: 'smartylighting.streetlights.1.0.action.{streetlightId}.turn.on'
address: smartylighting.streetlights.1.0.action.{streetlightId}.turn.on
messages:
turnOn:
$ref: '#/components/messages/turnOnOff'
parameters:
streetlightId:
$ref: '#/components/parameters/streetlightId'
lightTurnOff:
address: 'smartylighting.streetlights.1.0.action.{streetlightId}.turn.off'
address: smartylighting.streetlights.1.0.action.{streetlightId}.turn.off
messages:
turnOff:
$ref: '#/components/messages/turnOnOff'
parameters:
streetlightId:
$ref: '#/components/parameters/streetlightId'
lightsDim:
address: 'smartylighting.streetlights.1.0.action.{streetlightId}.dim'
address: smartylighting.streetlights.1.0.action.{streetlightId}.dim
messages:
dimLight:
$ref: '#/components/messages/dimLight'
Expand All @@ -89,31 +91,31 @@ operations:
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/lightMeasured'
- $ref: '#/channels/lightingMeasured/messages/lightMeasured'
turnOn:
action: send
channel:
$ref: '#/channels/lightTurnOn'
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOn/messages/turnOn'
turnOff:
action: send
channel:
$ref: '#/channels/lightTurnOff'
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOff/messages/turnOff'
dimLight:
action: send
channel:
$ref: '#/channels/lightsDim'
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/dimLight'
- $ref: '#/channels/lightsDim/messages/dimLight'
components:
messages:
lightMeasured:
Expand Down

0 comments on commit 22ca8b3

Please sign in to comment.