This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move type enums to external schemas to work around generator bug
- Loading branch information
Showing
1 changed file
with
32 additions
and
10 deletions.
There are no files selected for viewing
42 changes: 32 additions & 10 deletions
42
patches/spec.fetched.json/20231012-add-vc-enum-type.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,46 @@ | ||
diff --git a/spec/oas3.patched/openapi/public/components/schemas/VlanVirtualCircuit.yaml b/spec/oas3.patched/openapi/public/components/schemas/VlanVirtualCircuit.yaml | ||
index 2d150b05..2af30a7a 100644 | ||
index 2d150b05..08d9ccda 100644 | ||
--- a/spec/oas3.patched/openapi/public/components/schemas/VlanVirtualCircuit.yaml | ||
+++ b/spec/oas3.patched/openapi/public/components/schemas/VlanVirtualCircuit.yaml | ||
@@ -51,6 +51,7 @@ properties: | ||
@@ -49,8 +49,7 @@ properties: | ||
type: string | ||
type: array | ||
type: | ||
enum: | ||
- vlan | ||
+ type: string | ||
- enum: | ||
- - vlan | ||
+ $ref: './VlanVirtualCircuitType.yaml' | ||
virtual_network: | ||
$ref: './Href.yaml' | ||
vnid: | ||
diff --git a/spec/oas3.patched/openapi/public/components/schemas/VlanVirtualCircuitType.yaml b/spec/oas3.patched/openapi/public/components/schemas/VlanVirtualCircuitType.yaml | ||
new file mode 100644 | ||
index 00000000..76e2a359 | ||
--- /dev/null | ||
+++ b/spec/oas3.patched/openapi/public/components/schemas/VlanVirtualCircuitType.yaml | ||
@@ -0,0 +1,3 @@ | ||
+enum: | ||
+- vlan | ||
+type: string | ||
diff --git a/spec/oas3.patched/openapi/public/components/schemas/VrfVirtualCircuit.yaml b/spec/oas3.patched/openapi/public/components/schemas/VrfVirtualCircuit.yaml | ||
index 0ab53602..abc4c3a7 100644 | ||
index 0ab53602..54808d42 100644 | ||
--- a/spec/oas3.patched/openapi/public/components/schemas/VrfVirtualCircuit.yaml | ||
+++ b/spec/oas3.patched/openapi/public/components/schemas/VrfVirtualCircuit.yaml | ||
@@ -78,6 +78,7 @@ properties: | ||
@@ -76,8 +76,7 @@ properties: | ||
type: string | ||
type: array | ||
type: | ||
enum: | ||
- vrf | ||
+ type: string | ||
- enum: | ||
- - vrf | ||
+ $ref: './VrfVirtualCircuitType.yaml' | ||
vrf: | ||
$ref: './Vrf.yaml' | ||
created_at: | ||
diff --git a/spec/oas3.patched/openapi/public/components/schemas/VrfVirtualCircuitType.yaml b/spec/oas3.patched/openapi/public/components/schemas/VrfVirtualCircuitType.yaml | ||
new file mode 100644 | ||
index 00000000..6d255012 | ||
--- /dev/null | ||
+++ b/spec/oas3.patched/openapi/public/components/schemas/VrfVirtualCircuitType.yaml | ||
@@ -0,0 +1,3 @@ | ||
+enum: | ||
+- vrf | ||
+type: string |