Skip to content

Commit d89a0d5

Browse files
refactor: Refactor Code (#1367)
Related to PR - https://github.com/speakeasy-api/openapi-generation/pull/2479 Updated the title to include all changes since generator version 2.565.0 ([link](https://github.com/speakeasy-api/openapi-generation/releases))
1 parent 85740d6 commit d89a0d5

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ require (
3333
github.com/sethvargo/go-githubactions v1.1.0
3434
github.com/speakeasy-api/huh v1.1.2
3535
github.com/speakeasy-api/openapi v0.1.7
36-
github.com/speakeasy-api/openapi-generation/v2 v2.565.0
36+
github.com/speakeasy-api/openapi-generation/v2 v2.565.1
3737
github.com/speakeasy-api/openapi-overlay v0.10.1
3838
github.com/speakeasy-api/sdk-gen-config v1.30.11
3939
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.25.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ github.com/speakeasy-api/libopenapi v0.21.8-fixhiddencomps-fixed h1:wnCsprnR6nlo
588588
github.com/speakeasy-api/libopenapi v0.21.8-fixhiddencomps-fixed/go.mod h1:Gc8oQkjr2InxwumK0zOBtKN9gIlv9L2VmSVIUk2YxcU=
589589
github.com/speakeasy-api/openapi v0.1.7 h1:INU1+Pu9/ub6JtABRj8cWCpU3CCE/Z8q1FTygczYkes=
590590
github.com/speakeasy-api/openapi v0.1.7/go.mod h1:t1HA3wPC8jpGRr0UHW+SIvIB8dT5RXXi39XLrIG/URU=
591-
github.com/speakeasy-api/openapi-generation/v2 v2.565.0 h1:h6jHYtz6+NN9X3tpvZs+Ew+VGqxs3kITdi3YvRb6CUI=
592-
github.com/speakeasy-api/openapi-generation/v2 v2.565.0/go.mod h1:nwZ00jaFiPWxWJReu1Mj+vOH4Lhkami8o73LnEi8M+s=
591+
github.com/speakeasy-api/openapi-generation/v2 v2.565.1 h1:lzCD5yeTqxdDlIc3dgTFazCu6Jqq2bZD2a+XaxNVy1U=
592+
github.com/speakeasy-api/openapi-generation/v2 v2.565.1/go.mod h1:nwZ00jaFiPWxWJReu1Mj+vOH4Lhkami8o73LnEi8M+s=
593593
github.com/speakeasy-api/openapi-overlay v0.10.1 h1:XFx/GvJvtAGf4dcQ6bxzsLNf76x/QWE2X0SSZrWojBQ=
594594
github.com/speakeasy-api/openapi-overlay v0.10.1/go.mod h1:n0iOU7AqKpNFfEt6tq7qYITC4f0yzVVdFw0S7hukemg=
595595
github.com/speakeasy-api/sdk-gen-config v1.30.11 h1:y9ssqsVLlty+tQ4/A+lpkYvi6OcN37r5s3PxbFYXm4U=

internal/validation/openapi.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,15 @@ func Validate(ctx context.Context, outputLogger log.Logger, schema []byte, schem
287287
return nil, err
288288
}
289289

290-
res, err := g.Validate(ctx, schema, schemaPath, isRemote, workingDir, target)
290+
validateOpts := generate.ValidateOpts{
291+
Schema: schema,
292+
SchemaPath: schemaPath,
293+
IsRemote: isRemote,
294+
WorkingDir: workingDir,
295+
Target: target,
296+
}
297+
res, err := g.ValidateWithOpts(ctx, validateOpts)
298+
291299
if err != nil {
292300
return nil, err
293301
}

0 commit comments

Comments
 (0)