Skip to content

Commit

Permalink
feat!: upgrade to kin-openapi 0.127
Browse files Browse the repository at this point in the history
kin-openapi has breaking changes to a number of underlying structs
  • Loading branch information
tinygrasshopper committed Aug 16, 2024
1 parent 5f9da9b commit 0c7693b
Show file tree
Hide file tree
Showing 74 changed files with 153 additions and 153 deletions.
2 changes: 1 addition & 1 deletion cmd/vervet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"os"

"github.com/snyk/vervet/v7/internal/cmd"
"github.com/snyk/vervet/v8/internal/cmd"
)

func main() {
Expand Down
12 changes: 6 additions & 6 deletions cmd/vu-api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import (
"github.com/rs/zerolog/log"
"golang.org/x/sync/errgroup"

"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/handler"
"github.com/snyk/vervet/v7/internal/storage"
"github.com/snyk/vervet/v7/internal/storage/disk"
"github.com/snyk/vervet/v7/internal/storage/gcs"
"github.com/snyk/vervet/v7/internal/storage/s3"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/handler"
"github.com/snyk/vervet/v8/internal/storage"
"github.com/snyk/vervet/v8/internal/storage/disk"
"github.com/snyk/vervet/v8/internal/storage/gcs"
"github.com/snyk/vervet/v8/internal/storage/s3"
)

func main() {
Expand Down
12 changes: 6 additions & 6 deletions cmd/vu-scraper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"

"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/scraper"
"github.com/snyk/vervet/v7/internal/storage"
"github.com/snyk/vervet/v7/internal/storage/disk"
"github.com/snyk/vervet/v7/internal/storage/gcs"
"github.com/snyk/vervet/v7/internal/storage/s3"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/scraper"
"github.com/snyk/vervet/v8/internal/storage"
"github.com/snyk/vervet/v8/internal/storage/disk"
"github.com/snyk/vervet/v8/internal/storage/gcs"
"github.com/snyk/vervet/v8/internal/storage/s3"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions collator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/testdata"
)

func TestRefRemover(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v8/config"
)

func TestLoad(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion config/underground.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/spf13/viper"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v8"
)

// StorageType describes backend implementations supported by Vervet Underground.
Expand Down
4 changes: 2 additions & 2 deletions config/underground_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
)

func createTestFile(c *qt.C, data []byte) *os.File {
Expand Down
4 changes: 2 additions & 2 deletions document_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/testdata"
)

func TestNewDocumentFile(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"text/template"

"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/generator"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/generator"
)

// GeneratorParams contains the metadata needed to execute code generators.
Expand Down
4 changes: 2 additions & 2 deletions generate/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7/generate"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8/generate"
"github.com/snyk/vervet/v8/testdata"
)

func TestGenerateFS(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/snyk/vervet/v7
module github.com/snyk/vervet/v8

go 1.22

Expand Down
4 changes: 2 additions & 2 deletions include_headers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/testdata"
)

func TestCommonResponseHeaders(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion inliner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package vervet
import (
"github.com/getkin/kin-openapi/openapi3"

"github.com/snyk/vervet/v7/internal/openapiwalker"
"github.com/snyk/vervet/v8/internal/openapiwalker"
)

// Inliner inlines the component.
Expand Down
2 changes: 1 addition & 1 deletion internal/backstage/backstage.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/vmware-labs/yaml-jsonpath/pkg/yamlpath"
"gopkg.in/yaml.v3"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v8"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/backstage/backstage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8/testdata"
)

func TestBackstageName(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/backstage.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"github.com/urfave/cli/v2"

"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/backstage"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/backstage"
)

// BackstageCommand is the `vervet backstage` subcommand.
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

"github.com/urfave/cli/v2"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/compiler"
"github.com/snyk/vervet/v7/internal/simplebuild"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/compiler"
"github.com/snyk/vervet/v8/internal/simplebuild"
)

var defaultPivotDate = vervet.MustParseVersion("2024-09-01")
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/compiler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
qt "github.com/frankban/quicktest"
"github.com/getkin/kin-openapi/openapi3"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/internal/cmd"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/internal/cmd"
"github.com/snyk/vervet/v8/testdata"
)

var specFile = "/spec.yaml"
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/getkin/kin-openapi/openapi3"
"github.com/urfave/cli/v2"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v8"
)

// FilterCommand is the `vervet filter` subcommand.
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/internal/cmd"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/internal/cmd"
"github.com/snyk/vervet/v8/testdata"
)

func TestFilterInclude(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/urfave/cli/v2"

"github.com/snyk/vervet/v7/generate"
"github.com/snyk/vervet/v8/generate"
)

// GenerateCommand is the `vervet generate` subcommand.
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/localize.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/urfave/cli/v2"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v8"
)

// LocalizeCommand is the `vervet localize` subcommand.
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/urfave/cli/v2"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v8"
)

// ResolveCommand is the `vervet resolve` subcommand.
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/olekukonko/tablewriter"
"github.com/urfave/cli/v2"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/compiler"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/compiler"
)

// ResourceCommand is the `vervet resource` subcommand.
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7/internal/cmd"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8/internal/cmd"
"github.com/snyk/vervet/v8/testdata"
)

func cd(c *qt.C, path string) {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/scaffold.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/urfave/cli/v2"

"github.com/snyk/vervet/v7/internal/scaffold"
"github.com/snyk/vervet/v8/internal/scaffold"
)

// Scaffold is the `vervet scaffold` subcommand.
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/scaffold_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
qt "github.com/frankban/quicktest"
"github.com/urfave/cli/v2"

"github.com/snyk/vervet/v7/internal/cmd"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8/internal/cmd"
"github.com/snyk/vervet/v8/testdata"
)

var vervetConfigFile = "./.vervet.yaml"
Expand Down
6 changes: 3 additions & 3 deletions internal/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/ghodss/yaml"
"go.uber.org/multierr"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/files"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/files"
)

// A Compiler checks and builds versioned API resource inputs into aggregated
Expand Down
6 changes: 3 additions & 3 deletions internal/compiler/compiler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/testdata"
)

func setup(c *qt.C) {
Expand Down
4 changes: 2 additions & 2 deletions internal/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/bmatcuk/doublestar/v4"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
)

// FileSource defines a source of spec files to lint. This abstraction allows
Expand Down
4 changes: 2 additions & 2 deletions internal/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

"github.com/ghodss/yaml"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
)

// Generator generates files for new resources from data models and templates.
Expand Down
4 changes: 2 additions & 2 deletions internal/generator/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/testdata"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/testdata"
)

func setup(c *qt.C) {
Expand Down
6 changes: 3 additions & 3 deletions internal/generator/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/getkin/kin-openapi/openapi3"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/compiler"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/compiler"
)

// ResourceKey uniquely identifies an API resource.
Expand Down
8 changes: 4 additions & 4 deletions internal/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import (
prommiddleware "github.com/slok/go-http-metrics/middleware"
prommiddlewarestd "github.com/slok/go-http-metrics/middleware/std"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/storage"
"github.com/snyk/vervet/v7/versionware"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/storage"
"github.com/snyk/vervet/v8/versionware"
)

// Handler handles Vervet Underground HTTP requests.
Expand Down
6 changes: 3 additions & 3 deletions internal/handler/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

qt "github.com/frankban/quicktest"

"github.com/snyk/vervet/v7"
"github.com/snyk/vervet/v7/config"
"github.com/snyk/vervet/v7/internal/handler"
"github.com/snyk/vervet/v8"
"github.com/snyk/vervet/v8/config"
"github.com/snyk/vervet/v8/internal/handler"
)

func TestHealth(t *testing.T) {
Expand Down
Loading

0 comments on commit 0c7693b

Please sign in to comment.