Skip to content

Commit

Permalink
Feat/remove required (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjuruu authored Feb 16, 2025
1 parent b5557c7 commit 35df2b5
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 106 deletions.
5 changes: 0 additions & 5 deletions go-client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,6 @@ components:
thumbnail:
description: URL of the post thumbnail.
type: string
required:
- content
- summary
- thumbnail
- title
type: object
ICreateUserRequestDTO:
example:
Expand Down
30 changes: 25 additions & 5 deletions go-client/docs/IUpdatePostRequestDTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Title** | **string** | Title of the post. |
**Summary** | **string** | Summary of the post. |
**Content** | **string** | Content of the post. |
**Thumbnail** | **string** | URL of the post thumbnail. |
**Title** | Pointer to **string** | Title of the post. | [optional]
**Summary** | Pointer to **string** | Summary of the post. | [optional]
**Content** | Pointer to **string** | Content of the post. | [optional]
**Thumbnail** | Pointer to **string** | URL of the post thumbnail. | [optional]

## Methods

### NewIUpdatePostRequestDTO

`func NewIUpdatePostRequestDTO(title string, summary string, content string, thumbnail string, ) *IUpdatePostRequestDTO`
`func NewIUpdatePostRequestDTO() *IUpdatePostRequestDTO`

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

SetTitle sets Title field to given value.

### HasTitle

`func (o *IUpdatePostRequestDTO) HasTitle() bool`

HasTitle returns a boolean if a field has been set.

### GetSummary

Expand All @@ -67,6 +72,11 @@ and a boolean to check if the value has been set.

SetSummary sets Summary field to given value.

### HasSummary

`func (o *IUpdatePostRequestDTO) HasSummary() bool`

HasSummary returns a boolean if a field has been set.

### GetContent

Expand All @@ -87,6 +97,11 @@ and a boolean to check if the value has been set.

SetContent sets Content field to given value.

### HasContent

`func (o *IUpdatePostRequestDTO) HasContent() bool`

HasContent returns a boolean if a field has been set.

### GetThumbnail

Expand All @@ -107,6 +122,11 @@ and a boolean to check if the value has been set.

SetThumbnail sets Thumbnail field to given value.

### HasThumbnail

`func (o *IUpdatePostRequestDTO) HasThumbnail() bool`

HasThumbnail 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
2 changes: 1 addition & 1 deletion go-client/docs/PostAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ import (

func main() {
id := "id_example" // string | Post id.
iUpdatePostRequestDTO := *openapiclient.NewIUpdatePostRequestDTO("Title_example", "Summary_example", "Content_example", "Thumbnail_example") // IUpdatePostRequestDTO |
iUpdatePostRequestDTO := *openapiclient.NewIUpdatePostRequestDTO() // IUpdatePostRequestDTO |

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
Expand Down
172 changes: 82 additions & 90 deletions go-client/model_i_update_post_request_dto.go

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

1 change: 0 additions & 1 deletion openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ components:
description: URL of the post thumbnail.
IUpdatePostRequestDTO:
type: object
required: [title, summary, content, thumbnail]
properties:
title:
type: string
Expand Down
Loading

0 comments on commit 35df2b5

Please sign in to comment.