Skip to content

Commit eaac253

Browse files
committed
Update connexions
1 parent dd91219 commit eaac253

7 files changed

Lines changed: 128 additions & 20 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
2+
*.iml
23
.build

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/go-playground/validator/v10 v10.30.1
99
github.com/joho/godotenv v1.5.1
1010
github.com/lmittmann/tint v1.1.3
11-
github.com/mockzilla/connexions/v2 v2.1.82
11+
github.com/mockzilla/connexions/v2 v2.1.83
1212
go.yaml.in/yaml/v4 v4.0.0-rc.4
1313
)
1414

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
4444
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
4545
github.com/lmittmann/tint v1.1.3 h1:Hv4EaHWXQr+GTFnOU4VKf8UvAtZgn0VuKT+G0wFlO3I=
4646
github.com/lmittmann/tint v1.1.3/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
47-
github.com/mockzilla/connexions/v2 v2.1.82 h1:PFl+JVacC0rJ9cMerxjX4mPErsjAjSGWPSMOyj7guQs=
48-
github.com/mockzilla/connexions/v2 v2.1.82/go.mod h1:MJRU6E4R1X36DtRoi31uVr1B3i2GaWrbtxSdVz7yzO8=
47+
github.com/mockzilla/connexions/v2 v2.1.83 h1:GMTdN9QxqdC50TASbmx5GaxCJCjeAYSsYNCqbB6byOA=
48+
github.com/mockzilla/connexions/v2 v2.1.83/go.mod h1:MJRU6E4R1X36DtRoi31uVr1B3i2GaWrbtxSdVz7yzO8=
4949
github.com/pb33f/jsonpath v0.8.1 h1:84C6QRyx6HcSm6PZnsMpcqYot3IsZ+m0n95+0NbBbvs=
5050
github.com/pb33f/jsonpath v0.8.1/go.mod h1:zBV5LJW4OQOPatmQE2QdKpGQJvhDTlE5IEj6ASaRNTo=
5151
github.com/pb33f/libopenapi v0.33.11 h1:ro0FgEvkpdw1zq7T2kXRHh0efrdX27FQ8McT6E0RsYo=

pkg/hello_world/gen.go

Lines changed: 108 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/hello_world/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func newService(params *api.ServiceParams) *service {
2626
}
2727

2828
// PostHello handles POST /hello
29-
func (s *service) PostHello(ctx context.Context) (*PostHelloResponseData, error) {
29+
func (s *service) PostHello(ctx context.Context, opts *PostHelloServiceRequestOptions) (*PostHelloResponseData, error) {
3030
// TODO: Implement your business logic here.
3131
// Return nil, nil to use the generated mock response.
3232
return nil, nil
File renamed without changes.

pkg/hello_world/setup/openapi.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file is auto-generated from static files in setup/data/.
2+
# Do not edit manually - modify the static files and regenerate instead.
13
info:
24
title: hello_world
35
version: 1.0.0
@@ -6,6 +8,19 @@ paths:
68
/hello:
79
post:
810
operationId: postHello
11+
parameters:
12+
- in: query
13+
name: q
14+
required: false
15+
schema:
16+
type: string
17+
requestBody:
18+
content:
19+
application/json:
20+
schema:
21+
additionalProperties: true
22+
type: object
23+
required: false
924
responses:
1025
'200':
1126
content:

0 commit comments

Comments
 (0)