Skip to content

Commit d95c4db

Browse files
authored
update generated code (#6)
1 parent 7d06e98 commit d95c4db

File tree

24 files changed

+88
-244
lines changed

24 files changed

+88
-244
lines changed

test/client/petstore_v2/petstore/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.openapi-generator-ignore
12
README.md
23
docs/ApiResponse.md
34
docs/Category.md

test/client/petstore_v2/petstore/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ This is a sample server Petstore server. You can find out more about Swagger at
66
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
77

88
- API version: 1.0.6
9-
- Package version:
109
- Build package: org.openapitools.codegen.languages.JuliaClientCodegen
1110

1211

test/client/petstore_v2/petstore/src/PetStoreClient.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ using Dates, TimeZones
77
using OpenAPI
88
using OpenAPI.Clients
99

10+
const API_VERSION = "1.0.6"
11+
1012
include("modelincludes.jl")
1113

1214
include("apis/api_PetApi.jl")

test/client/petstore_v2/petstore/src/apis/api_PetApi.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ struct PetApi <: OpenAPI.APIClientImpl
55
client::OpenAPI.Clients.Client
66
end
77

8+
"""
9+
The default API base path for APIs in `PetApi`.
10+
This can be used to construct the `OpenAPI.Clients.Client` instance.
11+
"""
12+
basepath(::Type{ PetApi }) = "https://petstore.swagger.io/v2"
13+
814
const _returntypes_add_pet = Dict{Regex,Type}(
915
Regex("^" * replace("405", "x"=>".") * "\$") => Nothing,
1016
)

test/client/petstore_v2/petstore/src/apis/api_StoreApi.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ struct StoreApi <: OpenAPI.APIClientImpl
55
client::OpenAPI.Clients.Client
66
end
77

8+
"""
9+
The default API base path for APIs in `StoreApi`.
10+
This can be used to construct the `OpenAPI.Clients.Client` instance.
11+
"""
12+
basepath(::Type{ StoreApi }) = "https://petstore.swagger.io/v2"
13+
814
const _returntypes_delete_order = Dict{Regex,Type}(
915
Regex("^" * replace("400", "x"=>".") * "\$") => Nothing,
1016
Regex("^" * replace("404", "x"=>".") * "\$") => Nothing,

test/client/petstore_v2/petstore/src/apis/api_UserApi.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ struct UserApi <: OpenAPI.APIClientImpl
55
client::OpenAPI.Clients.Client
66
end
77

8+
"""
9+
The default API base path for APIs in `UserApi`.
10+
This can be used to construct the `OpenAPI.Clients.Client` instance.
11+
"""
12+
basepath(::Type{ UserApi }) = "https://petstore.swagger.io/v2"
13+
814
const _returntypes_create_user = Dict{Regex,Type}(
915
Regex("^" * replace("0", "x"=>".") * "\$") => Nothing,
1016
)

test/client/petstore_v3/petstore/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.openapi-generator-ignore
12
README.md
23
docs/ApiResponse.md
34
docs/Category.md

test/client/petstore_v3/petstore/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ This is a sample server Petstore server. For this sample, you can use the api ke
66
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
77

88
- API version: 1.0.0
9-
- Package version:
109
- Build package: org.openapitools.codegen.languages.JuliaClientCodegen
1110

1211

test/client/petstore_v3/petstore/src/PetStoreClient.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ using Dates, TimeZones
77
using OpenAPI
88
using OpenAPI.Clients
99

10+
const API_VERSION = "1.0.0"
11+
1012
include("modelincludes.jl")
1113

1214
include("apis/api_PetApi.jl")

test/client/petstore_v3/petstore/src/apis/api_PetApi.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ struct PetApi <: OpenAPI.APIClientImpl
55
client::OpenAPI.Clients.Client
66
end
77

8+
"""
9+
The default API base path for APIs in `PetApi`.
10+
This can be used to construct the `OpenAPI.Clients.Client` instance.
11+
"""
12+
basepath(::Type{ PetApi }) = "/v3"
13+
814
const _returntypes_add_pet = Dict{Regex,Type}(
915
Regex("^" * replace("405", "x"=>".") * "\$") => Nothing,
1016
)

0 commit comments

Comments
 (0)