From 8f9e959202ca21cd1b82cf5b26a0df458e3cbf52 Mon Sep 17 00:00:00 2001 From: Walker Lockard Date: Thu, 9 Oct 2025 10:09:56 -0700 Subject: [PATCH] feat: open enums --- .speakeasy/overlays/open-enums.overlay.yaml | 10 ++++++++++ .speakeasy/workflow.yaml | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 .speakeasy/overlays/open-enums.overlay.yaml diff --git a/.speakeasy/overlays/open-enums.overlay.yaml b/.speakeasy/overlays/open-enums.overlay.yaml new file mode 100644 index 00000000..50a03a3d --- /dev/null +++ b/.speakeasy/overlays/open-enums.overlay.yaml @@ -0,0 +1,10 @@ +overlay: 1.0.0 +x-speakeasy-jsonpath: rfc9535 +info: + title: Add open enums + version: 0.0.0 +actions: + - target: $..[?length(@.enum) > 1] + description: Automatically open all enums that have length > 1 + update: + x-speakeasy-unknown-values: allow diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 6ce16010..08954579 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -4,6 +4,8 @@ sources: OpenRouter API: inputs: - location: .speakeasy/in.openapi.yaml + overlays: + - location: .speakeasy/overlays/open-enums.overlay.yaml output: .speakeasy/out.openapi.yaml registry: location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api