Skip to content

Commit

Permalink
fix: swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Aug 11, 2022
1 parent 939cbab commit fe85f64
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 67 deletions.
4 changes: 3 additions & 1 deletion authclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ components:
ClientSecret:
properties:
lastDigits:
type: number
type: string
name:
type: string
id:
Expand Down Expand Up @@ -414,6 +414,8 @@ components:
properties:
name:
type: string
required:
- name
type: object
Secret:
allOf:
Expand Down
10 changes: 5 additions & 5 deletions authclient/docs/ClientSecret.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**LastDigits** | **float32** | |
**LastDigits** | **string** | |
**Name** | **string** | |
**Id** | **string** | |

## Methods

### NewClientSecret

`func NewClientSecret(lastDigits float32, name string, id string, ) *ClientSecret`
`func NewClientSecret(lastDigits string, name string, id string, ) *ClientSecret`

NewClientSecret instantiates a new ClientSecret object
This constructor will assign default values to properties that have it defined,
Expand All @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set

### GetLastDigits

`func (o *ClientSecret) GetLastDigits() float32`
`func (o *ClientSecret) GetLastDigits() string`

GetLastDigits returns the LastDigits field if non-nil, zero value otherwise.

### GetLastDigitsOk

`func (o *ClientSecret) GetLastDigitsOk() (*float32, bool)`
`func (o *ClientSecret) GetLastDigitsOk() (*string, bool)`

GetLastDigitsOk returns a tuple with the LastDigits field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetLastDigits

`func (o *ClientSecret) SetLastDigits(v float32)`
`func (o *ClientSecret) SetLastDigits(v string)`

SetLastDigits sets LastDigits field to given value.

Expand Down
9 changes: 2 additions & 7 deletions authclient/docs/Secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Name** | **string** | |
**Id** | **string** | |
**LastDigits** | **string** | |
**Clear** | **string** | |
Expand All @@ -13,7 +13,7 @@ Name | Type | Description | Notes

### NewSecret

`func NewSecret(id string, lastDigits string, clear string, ) *Secret`
`func NewSecret(name string, id string, lastDigits string, clear string, ) *Secret`

NewSecret instantiates a new Secret object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -47,11 +47,6 @@ and a boolean to check if the value has been set.

SetName sets Name field to given value.

### HasName

`func (o *Secret) HasName() bool`

HasName returns a boolean if a field has been set.

### GetId

Expand Down
9 changes: 2 additions & 7 deletions authclient/docs/SecretOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | | [optional]
**Name** | **string** | |

## Methods

### NewSecretOptions

`func NewSecretOptions() *SecretOptions`
`func NewSecretOptions(name string, ) *SecretOptions`

NewSecretOptions instantiates a new SecretOptions object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -44,11 +44,6 @@ and a boolean to check if the value has been set.

SetName sets Name field to given value.

### HasName

`func (o *SecretOptions) HasName() bool`

HasName returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
12 changes: 6 additions & 6 deletions authclient/model_client_secret.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 13 additions & 20 deletions authclient/model_secret.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 13 additions & 20 deletions authclient/model_secret_options.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ components:
type: object
properties:
lastDigits:
type: number
type: string
name:
type: string
id:
Expand Down Expand Up @@ -383,6 +383,8 @@ components:
properties:
name:
type: string
required:
- name
Secret:
allOf:
- $ref: '#/components/schemas/SecretOptions'
Expand Down

0 comments on commit fe85f64

Please sign in to comment.