Skip to content

Commit 6125234

Browse files
chore: revert back to v3 yaml
1 parent 65a6194 commit 6125234

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+735
-66
lines changed

arazzo/arazzo_order_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/speakeasy-api/openapi/expression"
1111
"github.com/stretchr/testify/assert"
1212
"github.com/stretchr/testify/require"
13-
"go.yaml.in/yaml/v4"
13+
"gopkg.in/yaml.v3"
1414
)
1515

1616
func TestArazzo_ArrayOrdering_ReorderWorkflows_Success(t *testing.T) {

arazzo/arazzo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/speakeasy-api/openapi/yml"
2929
"github.com/stretchr/testify/assert"
3030
"github.com/stretchr/testify/require"
31-
"go.yaml.in/yaml/v4"
31+
"gopkg.in/yaml.v3"
3232
)
3333

3434
// TODO make it possible to choose json or yaml output

arazzo/core/criterion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/speakeasy-api/openapi/marshaller"
1212
"github.com/speakeasy-api/openapi/validation"
1313
"github.com/speakeasy-api/openapi/yml"
14-
"go.yaml.in/yaml/v4"
14+
"gopkg.in/yaml.v3"
1515
)
1616

1717
type CriterionExpressionType struct {

arazzo/core/criterion_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/speakeasy-api/openapi/marshaller"
88
"github.com/speakeasy-api/openapi/pointer"
99
"github.com/stretchr/testify/require"
10-
"go.yaml.in/yaml/v4"
10+
"gopkg.in/yaml.v3"
1111
)
1212

1313
func createCriterionWithRootNode(c Criterion, rootNode *yaml.Node) Criterion {

arazzo/core/reusable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/speakeasy-api/openapi/validation"
1212
values "github.com/speakeasy-api/openapi/values/core"
1313
"github.com/speakeasy-api/openapi/yml"
14-
"go.yaml.in/yaml/v4"
14+
"gopkg.in/yaml.v3"
1515
)
1616

1717
type Reusable[T marshaller.CoreModeler] struct {

arazzo/criterion/condition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/speakeasy-api/openapi/expression"
88
"github.com/speakeasy-api/openapi/validation"
9-
"go.yaml.in/yaml/v4"
9+
"gopkg.in/yaml.v3"
1010
)
1111

1212
// Operator represents the operator used to compare the value of a criterion.

arazzo/requestbody_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/speakeasy-api/openapi/marshaller"
99
"github.com/speakeasy-api/openapi/pointer"
1010
"github.com/stretchr/testify/assert"
11-
"go.yaml.in/yaml/v4"
11+
"gopkg.in/yaml.v3"
1212
)
1313

1414
func TestRequestBody_Validate_JSONPathInPayload_Success(t *testing.T) {

arazzo/reusable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/speakeasy-api/openapi/sequencedmap"
1515
"github.com/speakeasy-api/openapi/validation"
1616
"github.com/speakeasy-api/openapi/values"
17-
"go.yaml.in/yaml/v4"
17+
"gopkg.in/yaml.v3"
1818
)
1919

2020
type (

arazzo/successaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/speakeasy-api/openapi/pointer"
1515
"github.com/speakeasy-api/openapi/validation"
1616
walkpkg "github.com/speakeasy-api/openapi/walk"
17-
"go.yaml.in/yaml/v4"
17+
"gopkg.in/yaml.v3"
1818
)
1919

2020
// SuccessActionType represents the type of action to take on success.

expression/core/value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package core
22

3-
import "go.yaml.in/yaml/v4"
3+
import "gopkg.in/yaml.v3"
44

55
type ValueOrExpression = *yaml.Node

0 commit comments

Comments
 (0)