Skip to content

Commit

Permalink
fix: set pydantic version
Browse files Browse the repository at this point in the history
  • Loading branch information
devopsarr[bot] committed Jul 21, 2023
1 parent 31b7828 commit 85a91e0
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 47 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ Class | Method | HTTP request | Description
*CustomFormatApi* | [**CreateCustomFormat**](sonarr/docs/CustomFormatApi.md#createcustomformat) | **Post** /api/v3/customformat |
*CustomFormatApi* | [**DeleteCustomFormat**](sonarr/docs/CustomFormatApi.md#deletecustomformat) | **Delete** /api/v3/customformat/{id} |
*CustomFormatApi* | [**GetCustomFormatById**](sonarr/docs/CustomFormatApi.md#getcustomformatbyid) | **Get** /api/v3/customformat/{id} |
*CustomFormatApi* | [**GetCustomFormatSchema**](sonarr/docs/CustomFormatApi.md#getcustomformatschema) | **Get** /api/v3/customformat/schema |
*CustomFormatApi* | [**ListCustomFormat**](sonarr/docs/CustomFormatApi.md#listcustomformat) | **Get** /api/v3/customformat |
*CustomFormatApi* | [**ListCustomFormatSchema**](sonarr/docs/CustomFormatApi.md#listcustomformatschema) | **Get** /api/v3/customformat/schema |
*CustomFormatApi* | [**UpdateCustomFormat**](sonarr/docs/CustomFormatApi.md#updatecustomformat) | **Put** /api/v3/customformat/{id} |
*CutoffApi* | [**GetWantedCutoff**](sonarr/docs/CutoffApi.md#getwantedcutoff) | **Get** /api/v3/wanted/cutoff |
*CutoffApi* | [**GetWantedCutoffById**](sonarr/docs/CutoffApi.md#getwantedcutoffbyid) | **Get** /api/v3/wanted/cutoff/{id} |
Expand Down
8 changes: 7 additions & 1 deletion sonarr/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,15 @@ paths:
- CustomFormat
/api/v3/customformat/schema:
get:
operationId: GetCustomFormatSchema
operationId: ListCustomFormatSchema
responses:
"200":
content:
application/json:
schema:
items:
$ref: '#/components/schemas/CustomFormatSpecificationSchema'
type: array
description: Success
tags:
- CustomFormat
Expand Down
69 changes: 40 additions & 29 deletions sonarr/api_custom_format.go

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

34 changes: 18 additions & 16 deletions sonarr/docs/CustomFormatApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Method | HTTP request | Description
[**CreateCustomFormat**](CustomFormatApi.md#CreateCustomFormat) | **Post** /api/v3/customformat |
[**DeleteCustomFormat**](CustomFormatApi.md#DeleteCustomFormat) | **Delete** /api/v3/customformat/{id} |
[**GetCustomFormatById**](CustomFormatApi.md#GetCustomFormatById) | **Get** /api/v3/customformat/{id} |
[**GetCustomFormatSchema**](CustomFormatApi.md#GetCustomFormatSchema) | **Get** /api/v3/customformat/schema |
[**ListCustomFormat**](CustomFormatApi.md#ListCustomFormat) | **Get** /api/v3/customformat |
[**ListCustomFormatSchema**](CustomFormatApi.md#ListCustomFormatSchema) | **Get** /api/v3/customformat/schema |
[**UpdateCustomFormat**](CustomFormatApi.md#UpdateCustomFormat) | **Put** /api/v3/customformat/{id} |


Expand Down Expand Up @@ -211,9 +211,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)


## GetCustomFormatSchema
## ListCustomFormat

> GetCustomFormatSchema(ctx).Execute()
> []CustomFormatResource ListCustomFormat(ctx).Execute()


Expand All @@ -233,11 +233,13 @@ func main() {

configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CustomFormatApi.GetCustomFormatSchema(context.Background()).Execute()
resp, r, err := apiClient.CustomFormatApi.ListCustomFormat(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatApi.GetCustomFormatSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatApi.ListCustomFormat``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCustomFormat`: []CustomFormatResource
fmt.Fprintf(os.Stdout, "Response from `CustomFormatApi.ListCustomFormat`: %v\n", resp)
}
```

Expand All @@ -247,12 +249,12 @@ This endpoint does not need any parameter.

### Other Parameters

Other parameters are passed through a pointer to a apiGetCustomFormatSchemaRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiListCustomFormatRequest struct via the builder pattern


### Return type

(empty response body)
[**[]CustomFormatResource**](CustomFormatResource.md)

### Authorization

Expand All @@ -261,16 +263,16 @@ Other parameters are passed through a pointer to a apiGetCustomFormatSchemaReque
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: application/json

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


## ListCustomFormat
## ListCustomFormatSchema

> []CustomFormatResource ListCustomFormat(ctx).Execute()
> []CustomFormatSpecificationSchema ListCustomFormatSchema(ctx).Execute()


Expand All @@ -290,13 +292,13 @@ func main() {

configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.CustomFormatApi.ListCustomFormat(context.Background()).Execute()
resp, r, err := apiClient.CustomFormatApi.ListCustomFormatSchema(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatApi.ListCustomFormat``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CustomFormatApi.ListCustomFormatSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCustomFormat`: []CustomFormatResource
fmt.Fprintf(os.Stdout, "Response from `CustomFormatApi.ListCustomFormat`: %v\n", resp)
// response from `ListCustomFormatSchema`: []CustomFormatSpecificationSchema
fmt.Fprintf(os.Stdout, "Response from `CustomFormatApi.ListCustomFormatSchema`: %v\n", resp)
}
```

Expand All @@ -306,12 +308,12 @@ This endpoint does not need any parameter.

### Other Parameters

Other parameters are passed through a pointer to a apiListCustomFormatRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiListCustomFormatSchemaRequest struct via the builder pattern


### Return type

[**[]CustomFormatResource**](CustomFormatResource.md)
[**[]CustomFormatSpecificationSchema**](CustomFormatSpecificationSchema.md)

### Authorization

Expand Down

0 comments on commit 85a91e0

Please sign in to comment.