Skip to content

Commit

Permalink
chore: upgrade to latest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanSpeakEasy committed Nov 9, 2023
1 parent 86c973c commit cb66b8d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ require (
github.com/go-git/go-git/v5 v5.4.2
github.com/google/go-github/v54 v54.0.0
github.com/hashicorp/go-version v1.6.0
github.com/pb33f/libopenapi v0.12.1
github.com/speakeasy-api/sdk-gen-config v1.1.0
github.com/pb33f/libopenapi v0.13.8
github.com/speakeasy-api/sdk-gen-config v1.2.0
github.com/stretchr/testify v1.8.4
golang.org/x/exp v0.0.0-20230811145659-89c5cff77bcb
golang.org/x/oauth2 v0.11.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ github.com/onsi/gomega v1.19.0 h1:4ieX6qQjPP/BfC3mpsAtIGGlxTWPeA3Inl/7DtXw1tw=
github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro=
github.com/pb33f/libopenapi v0.12.1 h1:DRhgbg1t32OSYoHT/Bk3stVruqquAkKj+S+OqOQIbBc=
github.com/pb33f/libopenapi v0.12.1/go.mod h1:s8uj6S0DjWrwZVj20ianJBz+MMjHAbeeRYNyo9ird74=
github.com/pb33f/libopenapi v0.13.8 h1:PzBTpN1jdTi/XJpHGiRomxSHfQHdabcasGXW8yEhIjw=
github.com/pb33f/libopenapi v0.13.8/go.mod h1:Lv2eEtsAtbRFlF8hjH82L8SIGoUNgemMVoKoB6A9THk=
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
Expand All @@ -129,6 +131,8 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/speakeasy-api/sdk-gen-config v1.1.0 h1:gSrzInsnw8tQh/FtZQJYyNo3gQ1Nu6Sm2OUp0BazMYI=
github.com/speakeasy-api/sdk-gen-config v1.1.0/go.mod h1:94mmqrM5tP6/O8triQo9PIb6YYqihtKeoH70uwQ+JF4=
github.com/speakeasy-api/sdk-gen-config v1.2.0 h1:u5UCrS63TXpNPgsBqU4iSmG0ZnFjKg7gDC8ICKVviu0=
github.com/speakeasy-api/sdk-gen-config v1.2.0/go.mod h1:94mmqrM5tP6/O8triQo9PIb6YYqihtKeoH70uwQ+JF4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
Expand Down
8 changes: 5 additions & 3 deletions internal/document/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ func GetOpenAPIFileInfo() (string, string, string, error) {
}

doc, err := libopenapi.NewDocumentWithConfiguration(data, &datamodel.DocumentConfiguration{
AllowRemoteReferences: true,
AllowFileReferences: true,
BasePath: basePath, // TODO possiblity this is set incorrectly for multiple input files but it is assumed currently any local references are relative to the first file
AllowRemoteReferences: true,
AllowFileReferences: true,
BasePath: basePath, // TODO possiblity this is set incorrectly for multiple input files but it is assumed currently any local references are relative to the first file
IgnorePolymorphicCircularReferences: true,
IgnoreArrayCircularReferences: true,
})
if err != nil {
return "", "", "", fmt.Errorf("failed to parse openapi file: %w", err)
Expand Down

0 comments on commit cb66b8d

Please sign in to comment.