Skip to content

Commit dd8e6bd

Browse files
authored
fix: add generic overlay to remove redundant allOf inline enums (#73)
1 parent e6b0242 commit dd8e6bd

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
overlay: 1.0.0
2+
x-speakeasy-jsonpath: rfc9535
3+
info:
4+
title: Simplify redundant allOf inline schemas
5+
version: 0.0.0
6+
actions:
7+
- target: "$..allOf[?@.enum && !@['$ref']]"
8+
description: >
9+
Remove inline enum definitions that duplicate a $ref enum in the same
10+
allOf. These are artifacts from zod-openapi .extend() serialization.
11+
remove: true

.speakeasy/workflow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ sources:
88
- location: .speakeasy/overlays/open-enums.overlay.yaml
99
- location: .speakeasy/overlays/remove-rss-responses.overlay.yaml
1010
- location: .speakeasy/overlays/add-headers.overlay.yaml
11+
- location: .speakeasy/overlays/allof-simplify.overlay.yaml
1112
output: .speakeasy/out.openapi.yaml
1213
registry:
1314
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api

0 commit comments

Comments
 (0)