diff --git a/.speakeasy/overlays/allof-simplify.overlay.yaml b/.speakeasy/overlays/allof-simplify.overlay.yaml new file mode 100644 index 0000000..44ac54b --- /dev/null +++ b/.speakeasy/overlays/allof-simplify.overlay.yaml @@ -0,0 +1,11 @@ +overlay: 1.0.0 +x-speakeasy-jsonpath: rfc9535 +info: + title: Simplify redundant allOf inline schemas + version: 0.0.0 +actions: + - target: "$..allOf[?@.enum && !@['$ref']]" + description: > + Remove inline enum definitions that duplicate a $ref enum in the same + allOf. These are artifacts from zod-openapi .extend() serialization. + remove: true diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index c273ecf..a56576a 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -8,6 +8,7 @@ sources: - location: .speakeasy/overlays/open-enums.overlay.yaml - location: .speakeasy/overlays/remove-rss-responses.overlay.yaml - location: .speakeasy/overlays/add-headers.overlay.yaml + - location: .speakeasy/overlays/allof-simplify.overlay.yaml output: .speakeasy/out.openapi.yaml registry: location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api