Files
nats-python/openapi_templete/test/fixtures/asyncapi.yaml
T
2026-06-03 10:36:11 +02:00

35 lines
804 B
YAML

asyncapi: 3.0.0
info:
title: Temperature Service
version: 1.0.0
description: Temperature sensor publishing readings
servers:
production:
host: localhost:4222
protocol: nats
channels:
temperature/read:
address: temperature/read
messages:
TemperatureMessage:
$ref: '#/components/messages/TemperatureMessage'
operations:
receiveTemperature:
action: receive
channel:
$ref: '#/channels/temperature/read'
description: Receive temperature readings
components:
messages:
TemperatureMessage:
name: TemperatureMessage
title: Temperature Message
payload:
type: object
properties:
value:
type: number
timestamp:
type: string
sensor_id:
type: string