Skip to content

Commit 3d74e45

Browse files
fix: preserve metadata in swagger to openapi upgrade (#84)
1 parent 52734bd commit 3d74e45

File tree

7 files changed

+1876
-46
lines changed

7 files changed

+1876
-46
lines changed

internal/testutils/utils.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@ import (
1313
"strconv"
1414
"testing"
1515

16+
"github.com/speakeasy-api/openapi/yml"
1617
"github.com/stretchr/testify/assert"
1718
"gopkg.in/yaml.v3"
1819
)
1920

2021
// TODO use these more in tests
2122
func CreateStringYamlNode(value string, line, column int) *yaml.Node {
23+
cfg := yml.GetDefaultConfig()
24+
2225
return &yaml.Node{
2326
Value: value,
2427
Kind: yaml.ScalarNode,
28+
Style: cfg.ValueStringStyle,
2529
Tag: "!!str",
2630
Line: line,
2731
Column: column,

0 commit comments

Comments
 (0)