Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit c30542c

Browse files
committed
speakeasy: add overlay
Signed-off-by: Stephan Renatus <stephan@styra.com>
1 parent 1f26ab4 commit c30542c

File tree

2 files changed

+26
-11
lines changed

2 files changed

+26
-11
lines changed

.speakeasy/overlay.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
overlay: 1.0.0
2+
info:
3+
title: Overlay to test the discriminator for the batch API
4+
version: 0.0.1
5+
actions:
6+
- target: "$.components..BatchMixedResults..responses.additionalProperties"
7+
description: add a descrimintor
8+
update:
9+
discriminator:
10+
propertyName: http_status_code
11+
mapping:
12+
"200": "#/components/schemas/SuccessfulPolicyResponse"
13+
"500": "#/components/schemas/ServerError"

.speakeasy/workflow.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
workflowVersion: 1.0.0
22
speakeasyVersion: latest
33
sources:
4-
openapi:
5-
inputs:
6-
- location: https://raw.githubusercontent.com/StyraInc/enterprise-opa/main/openapi/openapi.yaml
7-
registry:
8-
location: registry.speakeasyapi.dev/styra/styra/openapi
4+
openapi:
5+
inputs:
6+
- location: https://raw.githubusercontent.com/StyraInc/enterprise-opa/main/openapi/openapi.yaml
7+
overlays:
8+
- location: ./.speakeasy/overlay.yaml
9+
registry:
10+
location: registry.speakeasyapi.dev/styra/styra/openapi
911
targets:
10-
first-target:
11-
target: typescript
12-
source: openapi
13-
publish:
14-
npm:
15-
token: $npm_token
12+
first-target:
13+
target: typescript
14+
source: openapi
15+
publish:
16+
npm:
17+
token: $npm_token

0 commit comments

Comments
 (0)