Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenharrison committed Jan 30, 2025
1 parent d170151 commit b45dcc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 6 additions & 3 deletions diff/string_map_diff.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package diff

import "github.com/tufin/oasdiff/utils"
import (
"github.com/getkin/kin-openapi/openapi3"
"github.com/tufin/oasdiff/utils"
)

// StringMapDiff describes the changes between a pair of string maps
type StringMapDiff struct {
Expand Down Expand Up @@ -31,7 +34,7 @@ func (diff *StringMapDiff) Empty() bool {
len(diff.Modified) == 0
}

func getStringMapDiff(strings1, strings2 utils.StringMap) *StringMapDiff {
func getStringMapDiff(strings1, strings2 openapi3.StringMap) *StringMapDiff {
diff := getStringMapDiffInternal(strings1, strings2)

if diff.Empty() {
Expand All @@ -41,7 +44,7 @@ func getStringMapDiff(strings1, strings2 utils.StringMap) *StringMapDiff {
return diff
}

func getStringMapDiffInternal(strings1, strings2 utils.StringMap) *StringMapDiff {
func getStringMapDiffInternal(strings1, strings2 openapi3.StringMap) *StringMapDiff {
result := newStringMapDiffDiff()

for k1, v1 := range strings1 {
Expand Down
3 changes: 1 addition & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w=
github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM=
github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI=
github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
Expand Down

0 comments on commit b45dcc6

Please sign in to comment.