mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
fix: add generic overlay to remove redundant allOf inline enums (#73)
This commit is contained in:
@@ -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
|
||||||
@@ -8,6 +8,7 @@ sources:
|
|||||||
- location: .speakeasy/overlays/open-enums.overlay.yaml
|
- location: .speakeasy/overlays/open-enums.overlay.yaml
|
||||||
- location: .speakeasy/overlays/remove-rss-responses.overlay.yaml
|
- location: .speakeasy/overlays/remove-rss-responses.overlay.yaml
|
||||||
- location: .speakeasy/overlays/add-headers.overlay.yaml
|
- location: .speakeasy/overlays/add-headers.overlay.yaml
|
||||||
|
- location: .speakeasy/overlays/allof-simplify.overlay.yaml
|
||||||
output: .speakeasy/out.openapi.yaml
|
output: .speakeasy/out.openapi.yaml
|
||||||
registry:
|
registry:
|
||||||
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api
|
location: registry.speakeasyapi.dev/openrouter/sdk/open-router-chat-completions-api
|
||||||
|
|||||||
Reference in New Issue
Block a user