From 9888aaa79b0beb7b1cfa546b9c3839dd364a9083 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Fri, 27 Dec 2024 10:27:10 +0100 Subject: [PATCH] fix: remove default value that breaks code --- ips/.openapi-generator/FILES | 2 -- ips/api/openapi.yaml | 1 - ips/docs/Ip.md | 2 +- ips/model_ip.go | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ips/.openapi-generator/FILES b/ips/.openapi-generator/FILES index fdfaa07..a326d95 100644 --- a/ips/.openapi-generator/FILES +++ b/ips/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml @@ -45,5 +44,4 @@ model_update_null_route_opts.go model_update_reverse_lookup_records_opts.go model_update_reverse_lookup_records_result.go response.go -test/api_ips_test.go utils.go diff --git a/ips/api/openapi.yaml b/ips/api/openapi.yaml index 0b5423a..27cb6f6 100644 --- a/ips/api/openapi.yaml +++ b/ips/api/openapi.yaml @@ -1728,7 +1728,6 @@ components: type: string type: object subnet: - default: {} description: Object containing information about the network and gateway example: prefixLength: 5 diff --git a/ips/docs/Ip.md b/ips/docs/Ip.md index bed6423..796ead4 100644 --- a/ips/docs/Ip.md +++ b/ips/docs/Ip.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **UnnullingAllowed** | **bool** | Boolean indicating if the null route can be removed | [default to false] **EquipmentId** | **string** | ID of the equipment using the IP | **AssignedContract** | [**NullableAssignedContract**](AssignedContract.md) | | -**Subnet** | [**Subnet**](Subnet.md) | | [default to {}] +**Subnet** | [**Subnet**](Subnet.md) | | ## Methods diff --git a/ips/model_ip.go b/ips/model_ip.go index 63473ab..269d9d9 100644 --- a/ips/model_ip.go +++ b/ips/model_ip.go @@ -77,8 +77,6 @@ func NewIpWithDefaults() *Ip { this.NullRouted = nullRouted var unnullingAllowed bool = false this.UnnullingAllowed = unnullingAllowed - var subnet Subnet = {} - this.Subnet = subnet return &this }