{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/ExitTransformerPluginConfig", "title": "ExitTransformerPluginConfig", "x-speakeasy-entity": "PluginExitTransformer", "properties": { "config": { "type": "object", "properties": { "functions": { "type": "array", "items": { "type": "string" } }, "handle_unexpected": { "description": "Determines whether to handle unexpected errors by transforming their responses.", "type": "boolean", "default": false }, "handle_unknown": { "description": "Determines whether to handle unknown status codes by transforming their responses.", "type": "boolean", "default": false } }, "required": [ "functions" ] }, "consumer": { "description": "If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.", "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" } } }, "name": { "const": "exit-transformer" }, "protocols": { "description": "A set of strings representing HTTP protocols.", "type": "array", "items": { "enum": [ "grpc", "grpcs", "http", "https" ], "type": "string" }, "format": "set", "default": [ "grpc", "grpcs", "http", "https" ] }, "route": { "description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.", "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" } } }, "service": { "description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.", "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" } } } }, "required": [ "config" ] }