Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for go 1.19 #2808

Merged
merged 1 commit into from Aug 26, 2022
Merged

Fixes for go 1.19 #2808

merged 1 commit into from Aug 26, 2022

Conversation

casualjim
Copy link
Member

@casualjim casualjim commented Aug 7, 2022

fixes #2759
fixes #2809

@@ -10,7 +10,7 @@ import (
"github.com/go-openapi/spec"
"github.com/go-openapi/swag"
flags "github.com/jessevdk/go-flags"
yaml "gopkg.in/yaml.v2"
yaml "gopkg.in/yaml.v3"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yaml v3 has removed MapSlice and thus would require a number of other changes.

Suggested change
yaml "gopkg.in/yaml.v3"
yaml "gopkg.in/yaml.v3"
Suggested change
yaml "gopkg.in/yaml.v3"
yaml "gopkg.in/yaml.v2"

@@ -14,7 +15,7 @@ import (
"github.com/go-openapi/loads"
"github.com/go-openapi/spec"
"github.com/jessevdk/go-flags"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"gopkg.in/yaml.v3"
"gopkg.in/yaml.v2"

run go 1.19 gofmt on the codebase

reduce use of deprecated constructs

update to yaml.v3 where appropriate

start building on github actions

add tests for `any` type
add type from issue #2809
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

any type (generics) Go 1.19 change breaks swagger
2 participants