Skip to content

Commit

Permalink
openapi fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl committed May 23, 2024
1 parent 3dc4dd1 commit 92f0d51
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 5 deletions.
17 changes: 16 additions & 1 deletion openapi/bootstrap-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,11 @@
]
},
"IpNet": {
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::IpNet",
"version": "0.1.0"
},
"oneOf": [
{
"title": "v4",
Expand Down Expand Up @@ -683,7 +688,12 @@
"Ipv4Net": {
"example": "192.168.1.0/24",
"title": "An IPv4 subnet",
"description": "An IPv4 subnet, including prefix and subnet mask",
"description": "An IPv4 subnet, including prefix and prefix length",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv4Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|1[0-9]|2[0-9]|3[0-2])$"
},
Expand Down Expand Up @@ -714,6 +724,11 @@
"example": "fd12:3456::/64",
"title": "An IPv6 subnet",
"description": "An IPv6 subnet, including prefix and subnet mask",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv6Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$"
},
Expand Down
17 changes: 16 additions & 1 deletion openapi/nexus-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -3174,6 +3174,11 @@
]
},
"IpNet": {
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::IpNet",
"version": "0.1.0"
},
"oneOf": [
{
"title": "v4",
Expand Down Expand Up @@ -3284,7 +3289,12 @@
"Ipv4Net": {
"example": "192.168.1.0/24",
"title": "An IPv4 subnet",
"description": "An IPv4 subnet, including prefix and subnet mask",
"description": "An IPv4 subnet, including prefix and prefix length",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv4Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|1[0-9]|2[0-9]|3[0-2])$"
},
Expand Down Expand Up @@ -3315,6 +3325,11 @@
"example": "fd12:3456::/64",
"title": "An IPv6 subnet",
"description": "An IPv6 subnet, including prefix and subnet mask",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv6Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$"
},
Expand Down
17 changes: 16 additions & 1 deletion openapi/nexus.json
Original file line number Diff line number Diff line change
Expand Up @@ -14314,6 +14314,11 @@
]
},
"IpNet": {
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::IpNet",
"version": "0.1.0"
},
"oneOf": [
{
"title": "v4",
Expand Down Expand Up @@ -14595,7 +14600,12 @@
"Ipv4Net": {
"example": "192.168.1.0/24",
"title": "An IPv4 subnet",
"description": "An IPv4 subnet, including prefix and subnet mask",
"description": "An IPv4 subnet, including prefix and prefix length",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv4Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|1[0-9]|2[0-9]|3[0-2])$"
},
Expand Down Expand Up @@ -14642,6 +14652,11 @@
"example": "fd12:3456::/64",
"title": "An IPv6 subnet",
"description": "An IPv6 subnet, including prefix and subnet mask",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv6Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$"
},
Expand Down
17 changes: 16 additions & 1 deletion openapi/sled-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -3388,6 +3388,11 @@
]
},
"IpNet": {
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::IpNet",
"version": "0.1.0"
},
"oneOf": [
{
"title": "v4",
Expand Down Expand Up @@ -3431,7 +3436,12 @@
"Ipv4Net": {
"example": "192.168.1.0/24",
"title": "An IPv4 subnet",
"description": "An IPv4 subnet, including prefix and subnet mask",
"description": "An IPv4 subnet, including prefix and prefix length",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv4Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|1[0-9]|2[0-9]|3[0-2])$"
},
Expand All @@ -3444,6 +3454,11 @@
"example": "fd12:3456::/64",
"title": "An IPv6 subnet",
"description": "An IPv6 subnet, including prefix and subnet mask",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv6Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$"
},
Expand Down
17 changes: 16 additions & 1 deletion openapi/wicketd.json
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,11 @@
]
},
"IpNet": {
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::IpNet",
"version": "0.1.0"
},
"oneOf": [
{
"title": "v4",
Expand Down Expand Up @@ -1729,7 +1734,12 @@
"Ipv4Net": {
"example": "192.168.1.0/24",
"title": "An IPv4 subnet",
"description": "An IPv4 subnet, including prefix and subnet mask",
"description": "An IPv4 subnet, including prefix and prefix length",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv4Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/([0-9]|1[0-9]|2[0-9]|3[0-2])$"
},
Expand Down Expand Up @@ -1760,6 +1770,11 @@
"example": "fd12:3456::/64",
"title": "An IPv6 subnet",
"description": "An IPv6 subnet, including prefix and subnet mask",
"x-rust-type": {
"crate": "oxnet",
"path": "oxnet::Ipv6Net",
"version": "0.1.0"
},
"type": "string",
"pattern": "^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$"
},
Expand Down

0 comments on commit 92f0d51

Please sign in to comment.