openapi client
openapi client
The openapi client binding creates composite of http, tls, and tcp bindings with client kind and adapts OpenAPI request-response streams to HTTP request-response streams.
openapi_client:
type: openapi
kind: client
options:
specs:
petstore:
servers:
- http://localhost:9090
catalog:
my_catalog:
subject: petstore
version: latestConfiguration (* required)
options
object
The openapi specific options.
options:
specs:
petstore:
servers:
- http://localhost:9090
catalog:
my_catalog:
subject: petstore
version: latestoptions.specs
objectas map of namedobjectproperties
The specs specific options.
specs.servers*
arrayofstring
Deployment-target URLs for the spec, independent of the servers declared in the spec document itself. At least one is required.
specs:
petstore:
servers:
- http://backend.internal:9090specs.security
objectas map of namedstringproperties, at most one entry
Maps an OpenAPI securitySchemes name declared in the spec document to a guard defined elsewhere in the configuration. Used to automatically derive guarded: on the routes generated for the composite, and to synthesize the matching credential-extraction pattern for the generated http binding from the scheme's own declared type — an http/bearer scheme extracts an Authorization: Bearer {credentials} header; an apiKey scheme extracts from whichever header, query, or cookie location and parameter name the scheme declares. No separate authorization configuration is needed.
specs:
petstore:
security:
bearerAuth: my_jwt_guardspecs.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.overlay
objectas map of namedobjectproperties
Applies an OpenAPI Overlay Specification document, stored as a catalog artifact, to the base spec document before it is used. A single overlay may be configured per spec.
specs:
petstore:
catalog:
my_catalog:
subject: petstore
version: latest
overlay:
my_catalog:
subject: petstore-overlay
version: latestoverlay.subject*
string
Subject name used when storing the overlay artifact.
overlay.version
string| Default:latest
Overlay artifact version to use.
vault
string
Vault name.
For each https server, a tls binding is generated automatically, with keys, trust, signers, and SNI resolved from vault and ALPN computed automatically — no separate TLS options are configured on this binding.
telemetry
object
Defines the desired telemetry for the binding.
telemetry.metrics
array
Telemetry metrics to track
telemetry:
metrics:
- stream.*telemetry.attributes
objectas map of namedstringproperties
Telemetry attributes to add to the binding metrics.

