forked from loafle/openapi-generator-original
[go] Required fields are not pointers (#6698)
* [go] Required fields are not pointers * regenerated
This commit is contained in:
parent
ec4e44a5f4
commit
b47f3fadee
@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
||||
**{{classname}}Interface** | **interface { {{#discriminator}}{{propertyGetter}}() {{propertyType}}{{/discriminator}} }** | An interface that can hold any of the proper implementing types |
|
||||
{{/vendorExtensions.x-is-one-of-interface}}
|
||||
{{^vendorExtensions.x-is-one-of-interface}}
|
||||
{{#vars}}**{{name}}** | Pointer to {{#isPrimitiveType}}**{{{dataType}}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{{dataType}}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}
|
||||
{{#vars}}**{{name}}** | {{^required}}Pointer to {{/required}}{{#isPrimitiveType}}**{{{dataType}}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{{dataType}}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}
|
||||
{{/vars}}
|
||||
{{/vendorExtensions.x-is-one-of-interface}}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ClassName** | Pointer to **string** | |
|
||||
**ClassName** | **string** | |
|
||||
**Color** | Pointer to **string** | | [optional] [default to "red"]
|
||||
|
||||
## Methods
|
||||
|
@ -5,7 +5,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | Pointer to **int64** | | [optional]
|
||||
**Name** | Pointer to **string** | | [default to "default-name"]
|
||||
**Name** | **string** | | [default to "default-name"]
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**EnumString** | Pointer to **string** | | [optional]
|
||||
**EnumStringRequired** | Pointer to **string** | |
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | Pointer to **int32** | | [optional]
|
||||
**EnumNumber** | Pointer to **float64** | | [optional]
|
||||
**OuterEnum** | Pointer to [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||
|
@ -7,16 +7,16 @@ Name | Type | Description | Notes
|
||||
**Integer** | Pointer to **int32** | | [optional]
|
||||
**Int32** | Pointer to **int32** | | [optional]
|
||||
**Int64** | Pointer to **int64** | | [optional]
|
||||
**Number** | Pointer to **float32** | |
|
||||
**Number** | **float32** | |
|
||||
**Float** | Pointer to **float32** | | [optional]
|
||||
**Double** | Pointer to **float64** | | [optional]
|
||||
**String** | Pointer to **string** | | [optional]
|
||||
**Byte** | Pointer to **string** | |
|
||||
**Byte** | **string** | |
|
||||
**Binary** | Pointer to [***os.File**](*os.File.md) | | [optional]
|
||||
**Date** | Pointer to **string** | |
|
||||
**Date** | **string** | |
|
||||
**DateTime** | Pointer to [**time.Time**](time.Time.md) | | [optional]
|
||||
**Uuid** | Pointer to **string** | | [optional]
|
||||
**Password** | Pointer to **string** | |
|
||||
**Password** | **string** | |
|
||||
**BigDecimal** | Pointer to **float64** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | Pointer to **int32** | |
|
||||
**Name** | **int32** | |
|
||||
**SnakeCase** | Pointer to **int32** | | [optional] [readonly]
|
||||
**Property** | Pointer to **string** | | [optional]
|
||||
**Var123Number** | Pointer to **int32** | | [optional] [readonly]
|
||||
|
@ -6,8 +6,8 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | Pointer to **int64** | | [optional]
|
||||
**Category** | Pointer to [**Category**](Category.md) | | [optional]
|
||||
**Name** | Pointer to **string** | |
|
||||
**PhotoUrls** | Pointer to **[]string** | |
|
||||
**Name** | **string** | |
|
||||
**PhotoUrls** | **[]string** | |
|
||||
**Tags** | Pointer to [**[]Tag**](Tag.md) | | [optional]
|
||||
**Status** | Pointer to **string** | pet status in the store | [optional]
|
||||
|
||||
|
@ -4,11 +4,11 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**StringItem** | Pointer to **string** | | [default to "what"]
|
||||
**NumberItem** | Pointer to **float32** | |
|
||||
**IntegerItem** | Pointer to **int32** | |
|
||||
**BoolItem** | Pointer to **bool** | | [default to true]
|
||||
**ArrayItem** | Pointer to **[]int32** | |
|
||||
**StringItem** | **string** | | [default to "what"]
|
||||
**NumberItem** | **float32** | |
|
||||
**IntegerItem** | **int32** | |
|
||||
**BoolItem** | **bool** | | [default to true]
|
||||
**ArrayItem** | **[]int32** | |
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -4,12 +4,12 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**StringItem** | Pointer to **string** | |
|
||||
**NumberItem** | Pointer to **float32** | |
|
||||
**FloatItem** | Pointer to **float32** | |
|
||||
**IntegerItem** | Pointer to **int32** | |
|
||||
**BoolItem** | Pointer to **bool** | |
|
||||
**ArrayItem** | Pointer to **[]int32** | |
|
||||
**StringItem** | **string** | |
|
||||
**NumberItem** | **float32** | |
|
||||
**FloatItem** | **float32** | |
|
||||
**IntegerItem** | **int32** | |
|
||||
**BoolItem** | **bool** | |
|
||||
**ArrayItem** | **[]int32** | |
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ClassName** | Pointer to **string** | |
|
||||
**ClassName** | **string** | |
|
||||
**Color** | Pointer to **string** | | [optional] [default to "red"]
|
||||
|
||||
## Methods
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Cultivar** | Pointer to **string** | |
|
||||
**Cultivar** | **string** | |
|
||||
**Mealy** | Pointer to **bool** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**LengthCm** | Pointer to **float32** | |
|
||||
**LengthCm** | **float32** | |
|
||||
**Sweet** | Pointer to **bool** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
@ -5,7 +5,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | Pointer to **int64** | | [optional]
|
||||
**Name** | Pointer to **string** | | [default to "default-name"]
|
||||
**Name** | **string** | | [default to "default-name"]
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**EnumString** | Pointer to **string** | | [optional]
|
||||
**EnumStringRequired** | Pointer to **string** | |
|
||||
**EnumStringRequired** | **string** | |
|
||||
**EnumInteger** | Pointer to **int32** | | [optional]
|
||||
**EnumNumber** | Pointer to **float64** | | [optional]
|
||||
**OuterEnum** | Pointer to [**NullableOuterEnum**](OuterEnum.md) | | [optional]
|
||||
|
@ -7,16 +7,16 @@ Name | Type | Description | Notes
|
||||
**Integer** | Pointer to **int32** | | [optional]
|
||||
**Int32** | Pointer to **int32** | | [optional]
|
||||
**Int64** | Pointer to **int64** | | [optional]
|
||||
**Number** | Pointer to **float32** | |
|
||||
**Number** | **float32** | |
|
||||
**Float** | Pointer to **float32** | | [optional]
|
||||
**Double** | Pointer to **float64** | | [optional]
|
||||
**String** | Pointer to **string** | | [optional]
|
||||
**Byte** | Pointer to **string** | |
|
||||
**Byte** | **string** | |
|
||||
**Binary** | Pointer to [***os.File**](*os.File.md) | | [optional]
|
||||
**Date** | Pointer to **string** | |
|
||||
**Date** | **string** | |
|
||||
**DateTime** | Pointer to [**time.Time**](time.Time.md) | | [optional]
|
||||
**Uuid** | Pointer to **string** | | [optional]
|
||||
**Password** | Pointer to **string** | |
|
||||
**Password** | **string** | |
|
||||
**PatternWithDigits** | Pointer to **string** | A string that is a 10 digit number. Can have leading zeros. | [optional]
|
||||
**PatternWithDigitsAndDelimiter** | Pointer to **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
|
||||
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Cultivar** | Pointer to **string** | |
|
||||
**Cultivar** | **string** | |
|
||||
**Mealy** | Pointer to **bool** | | [optional]
|
||||
**LengthCm** | Pointer to **float32** | |
|
||||
**LengthCm** | **float32** | |
|
||||
**Sweet** | Pointer to **bool** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
@ -7,12 +7,12 @@ Name | Type | Description | Notes
|
||||
**Integer** | Pointer to **int32** | None | [optional]
|
||||
**Int32** | Pointer to **int32** | None | [optional]
|
||||
**Int64** | Pointer to **int64** | None | [optional]
|
||||
**Number** | Pointer to **float32** | None |
|
||||
**Number** | **float32** | None |
|
||||
**Float** | Pointer to **float32** | None | [optional]
|
||||
**Double** | Pointer to **float64** | None |
|
||||
**Double** | **float64** | None |
|
||||
**String** | Pointer to **string** | None | [optional]
|
||||
**PatternWithoutDelimiter** | Pointer to **string** | None |
|
||||
**Byte** | Pointer to **string** | None |
|
||||
**PatternWithoutDelimiter** | **string** | None |
|
||||
**Byte** | **string** | None |
|
||||
**Binary** | Pointer to [***os.File**](*os.File.md) | None | [optional]
|
||||
**Date** | Pointer to **string** | None | [optional]
|
||||
**DateTime** | Pointer to [**time.Time**](time.Time.md) | None | [optional]
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Param** | Pointer to **string** | field1 |
|
||||
**Param2** | Pointer to **string** | field2 |
|
||||
**Param** | **string** | field1 |
|
||||
**Param2** | **string** | field2 |
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**AdditionalMetadata** | Pointer to **string** | Additional data to pass to server | [optional]
|
||||
**RequiredFile** | Pointer to [***os.File**](*os.File.md) | file to upload |
|
||||
**RequiredFile** | [***os.File**](*os.File.md) | file to upload |
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**HasBaleen** | Pointer to **bool** | | [optional]
|
||||
**HasTeeth** | Pointer to **bool** | | [optional]
|
||||
**ClassName** | Pointer to **string** | |
|
||||
**ClassName** | **string** | |
|
||||
**Type** | Pointer to **string** | | [optional]
|
||||
|
||||
## Methods
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Name** | Pointer to **int32** | |
|
||||
**Name** | **int32** | |
|
||||
**SnakeCase** | Pointer to **int32** | | [optional] [readonly]
|
||||
**Property** | Pointer to **string** | | [optional]
|
||||
**Var123Number** | Pointer to **int32** | | [optional] [readonly]
|
||||
|
@ -6,8 +6,8 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Id** | Pointer to **int64** | | [optional]
|
||||
**Category** | Pointer to [**Category**](Category.md) | | [optional]
|
||||
**Name** | Pointer to **string** | |
|
||||
**PhotoUrls** | Pointer to **[]string** | |
|
||||
**Name** | **string** | |
|
||||
**PhotoUrls** | **[]string** | |
|
||||
**Tags** | Pointer to [**[]Tag**](Tag.md) | | [optional]
|
||||
**Status** | Pointer to **string** | pet status in the store | [optional]
|
||||
|
||||
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**HasBaleen** | Pointer to **bool** | | [optional]
|
||||
**HasTeeth** | Pointer to **bool** | | [optional]
|
||||
**ClassName** | Pointer to **string** | |
|
||||
**ClassName** | **string** | |
|
||||
|
||||
## Methods
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**Type** | Pointer to **string** | | [optional]
|
||||
**ClassName** | Pointer to **string** | |
|
||||
**ClassName** | **string** | |
|
||||
|
||||
## Methods
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user