Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
move type enums to external schemas to work around generator bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Oct 12, 2023
1 parent 8f280a2 commit 8713ac4
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions patches/spec.fetched.json/20231012-add-vc-enum-type.patch
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

0 comments on commit 8713ac4

Please sign in to comment.