openapi-asyncapi proxy
openapi-asyncapi proxy
The openapi-asyncapi proxy binding for adapting openapi operations to asyncapi operations.
openapi_asyncapi_proxy:
type: openapi-asyncapi
kind: proxy
options:
specs:
openapi:
my-openapi-spec:
catalog:
my_catalog:
subject: petstore
version: latest
asyncapi:
my-asyncapi-spec:
catalog:
my_catalog:
subject: petstore
version: latest
routes:
- when:
- api-id: my-openapi-spec
exit: asyncapi_client
with:
api-id: my-asyncapi-specConfiguration (* required)
options
object
The openapi-asyncapi specific options.
options:
specs:
openapi:
my-openapi-spec:
catalog:
my_catalog:
subject: petstore
version: latest
asyncapi:
my-asyncapi-spec:
catalog:
my_catalog:
subject: petstore
version: latestoptions.specs
object
OpenAPI and AsyncAPI specs definition.
specs.openapi*
objectas map of namedobjectproperties
Options for each configured OpenAPI spec.
openapi.catalog
objectas map of namedobjectproperties
The Catalog specific options.
catalog.subject*
string
Subject name used when storing the catalog artifact.
catalog.version
string| Default:latest
Catalog artifact version to use.
specs.asyncapi*
objectas map of namedobjectproperties
Options for each configured AsyncAPI spec.
asyncapi.catalog
objectas map of namedobjectproperties
The catalog catalog specific options.
catalog.subject*
string
Subject name used when storing the catalog artifact.
catalog.version
string| Default:latest
Catalog artifact version to use.
routes
arrayofobject
Conditional openapi-asyncapi specific routes.
routes[].guarded
objectas map of namedarrayofstring
List of roles required by each named guard to authorize this route.
routes:
- guarded:
my_guard:
- read:itemsroutes[].when
arrayofobject
List of conditions to match this route when adapting openapi request-response streams to asyncapi streams. Read more: When a route matches
when[].api-id
string
OpenAPI spec identifier that matches from the openapi binding request stream.
when[].operation-id
string
OpenAPI OperationId that can be mapped between OpenAPI and AsyncAPI spec
routes[].exit
string
Next binding when following this route.
routes:
- when:
...
exit: asyncapi_clientroutes[].with*
object
Defines the route with the AsyncAPI spec identifier and OperationId.
with:
api-id: my-asyncapi-specwith.api-id
string
AsyncAPI spec identifier that the route exits with to the next binding.
with.operation-id
string
AsyncAPI OperationId that the route exits with to the next binding.
exit
string
Default exit binding when no conditional routes are viable.
exit: echo_servertelemetry
object
Defines the desired telemetry for the binding.
telemetry.metrics
array
Telemetry metrics to track
telemetry:
metrics:
- stream.*
