Skip to content

Commit 7a95c9e

Browse files
authored
Regenerate after rebase (#4000)
1 parent 600a81f commit 7a95c9e

3 files changed

Lines changed: 67 additions & 0 deletions

File tree

samples/client/petstore/go-experimental/go-petstore/api/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,9 @@ components:
14911491
maxLength: 64
14921492
minLength: 10
14931493
type: string
1494+
BigDecimal:
1495+
format: number
1496+
type: string
14941497
required:
14951498
- byte
14961499
- date

samples/client/petstore/go-experimental/go-petstore/docs/FormatTest.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
1717
**DateTime** | Pointer to [**time.Time**](time.Time.md) | | [optional]
1818
**Uuid** | Pointer to **string** | | [optional]
1919
**Password** | Pointer to **string** | |
20+
**BigDecimal** | Pointer to **float64** | | [optional]
2021

2122
## Methods
2223

@@ -345,6 +346,31 @@ HasPassword returns a boolean if a field has been set.
345346

346347
SetPassword gets a reference to the given string and assigns it to the Password field.
347348

349+
### GetBigDecimal
350+
351+
`func (o *FormatTest) GetBigDecimal() float64`
352+
353+
GetBigDecimal returns the BigDecimal field if non-nil, zero value otherwise.
354+
355+
### GetBigDecimalOk
356+
357+
`func (o *FormatTest) GetBigDecimalOk() (float64, bool)`
358+
359+
GetBigDecimalOk returns a tuple with the BigDecimal field if it's non-nil, zero value otherwise
360+
and a boolean to check if the value has been set.
361+
362+
### HasBigDecimal
363+
364+
`func (o *FormatTest) HasBigDecimal() bool`
365+
366+
HasBigDecimal returns a boolean if a field has been set.
367+
368+
### SetBigDecimal
369+
370+
`func (o *FormatTest) SetBigDecimal(v float64)`
371+
372+
SetBigDecimal gets a reference to the given float64 and assigns it to the BigDecimal field.
373+
348374

349375
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
350376

samples/client/petstore/go-experimental/go-petstore/model_format_test_.go

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ type FormatTest struct {
4242

4343
Password *string `json:"password,omitempty"`
4444

45+
BigDecimal *float64 `json:"BigDecimal,omitempty"`
46+
4547
}
4648

4749
// GetInteger returns the Integer field if non-nil, zero value otherwise.
@@ -473,6 +475,39 @@ func (o *FormatTest) SetPassword(v string) {
473475
o.Password = &v
474476
}
475477

478+
// GetBigDecimal returns the BigDecimal field if non-nil, zero value otherwise.
479+
func (o *FormatTest) GetBigDecimal() float64 {
480+
if o == nil || o.BigDecimal == nil {
481+
var ret float64
482+
return ret
483+
}
484+
return *o.BigDecimal
485+
}
486+
487+
// GetBigDecimalOk returns a tuple with the BigDecimal field if it's non-nil, zero value otherwise
488+
// and a boolean to check if the value has been set.
489+
func (o *FormatTest) GetBigDecimalOk() (float64, bool) {
490+
if o == nil || o.BigDecimal == nil {
491+
var ret float64
492+
return ret, false
493+
}
494+
return *o.BigDecimal, true
495+
}
496+
497+
// HasBigDecimal returns a boolean if a field has been set.
498+
func (o *FormatTest) HasBigDecimal() bool {
499+
if o != nil && o.BigDecimal != nil {
500+
return true
501+
}
502+
503+
return false
504+
}
505+
506+
// SetBigDecimal gets a reference to the given float64 and assigns it to the BigDecimal field.
507+
func (o *FormatTest) SetBigDecimal(v float64) {
508+
o.BigDecimal = &v
509+
}
510+
476511

477512
// MarshalJSON returns the JSON representation of the model.
478513
func (o FormatTest) MarshalJSON() ([]byte, error) {
@@ -528,6 +563,9 @@ func (o FormatTest) MarshalJSON() ([]byte, error) {
528563
if o.Password != nil {
529564
toSerialize["password"] = o.Password
530565
}
566+
if o.BigDecimal != nil {
567+
toSerialize["BigDecimal"] = o.BigDecimal
568+
}
531569
return json.Marshal(toSerialize)
532570
}
533571

0 commit comments

Comments
 (0)