Skip to main content
The plugin’s options are validated by Zod at construction time — invalid input throws synchronously rather than crashing later inside the bundle source. The full schema lives in src/skilled-openapi.types.ts and is exported as skilledOpenApiPluginOptionsSchema for downstream tooling.

Top-level shape

All options

SignatureKey shape

Multiple entries supported — the verifier picks by keyId. Rotate by adding the new key first, leaving the old key, distributing bundles signed with the new key, then dropping the old key once no in-flight bundles depend on it. A minimal production wiring uses environment variables for secrets and trusted keys:
For credentials, override the SkilledOpenApiCredentialResolver DI token with a vault-backed implementation rather than using the in-memory credentials option:
Register VaultBridgePlugin AFTER SkilledOpenApiPlugin so the override wins.

Reading current config at runtime

The parsed plugin options are available via the SkilledOpenApiConfig DI token:

Validation surface

Every option is validated at construction time. Examples:
  • Missing sourceZodError: Required at "source"
  • Malformed saas.endpoint URL → ZodError: Invalid url at "source.endpoint"
  • Unknown outbound.maxConcurrencyPerHost: 0ZodError: Number must be greater than 0
This means misconfiguration crashes the plugin at boot rather than producing weird runtime behavior. Monitor your boot logs.