Skip to content

Commit

Permalink
Schema!: Remove component ip_type_optional which has become obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKoestler committed Oct 28, 2024
1 parent 577d3f4 commit b7c1b54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
23 changes: 7 additions & 16 deletions openapi/hcloud.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"contact": {
"url": "https://docs.hetzner.cloud/"
},
"version": "ddf156c-dirty"
"version": "577d3f4-dirty"
},
"servers": [
{
Expand Down Expand Up @@ -2040,7 +2040,7 @@
"type": "string"
},
"type": {
"$ref": "#/components/schemas/ip_type_optional"
"$ref": "#/components/schemas/ip_type"
}
},
"required": [
Expand Down Expand Up @@ -2124,7 +2124,7 @@
"$ref": "#/components/schemas/protection"
},
"type": {
"$ref": "#/components/schemas/ip_type_optional"
"$ref": "#/components/schemas/ip_type"
}
},
"required": [
Expand Down Expand Up @@ -3509,7 +3509,7 @@
"$ref": "#/components/schemas/protection"
},
"type": {
"$ref": "#/components/schemas/ip_type_optional"
"$ref": "#/components/schemas/ip_type"
}
},
"required": [
Expand Down Expand Up @@ -3898,20 +3898,11 @@
"type": "object"
},
"ip_type": {
"description": "The type of the IP",
"enum": [
"ipv4",
"ipv6"
],
"type": "string"
},
"ip_type_optional": {
"description": "[Primary IP](#primary-ips) type.",
"description": "Floating IP type | Type of [Floating IP](#floating-ips) the price is for. | Type of [Primary IP](#primary-ips) the price is for. | [Primary IP](#primary-ips) type.",
"enum": [
"ipv4",
"ipv6"
],
"nullable": true,
"type": "string"
},
"ipv4": {
Expand Down Expand Up @@ -4842,7 +4833,7 @@
"$ref": "#/components/schemas/protection"
},
"type": {
"$ref": "#/components/schemas/ip_type_optional"
"$ref": "#/components/schemas/ip_type"
}
},
"required": [
Expand Down Expand Up @@ -6361,7 +6352,7 @@
"$ref": "#/components/schemas/protection"
},
"type": {
"$ref": "#/components/schemas/ip_type_optional"
"$ref": "#/components/schemas/ip_type"
}
},
"required": [
Expand Down
8 changes: 0 additions & 8 deletions resources/schema_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,7 @@
]
},
{
"description": "The type of the IP",
"name": "ip_type",
"path": [
"create_floating_ip_request",
"type"
]
},
{
"name": "ip_type_optional",
"path": [
"create_primary_ip_request",
"type"
Expand Down

0 comments on commit b7c1b54

Please sign in to comment.