Monster refactor of map to orderedmap.Map data type.

This commit is contained in:
Shawn Poulson
2023-08-30 13:12:03 -04:00
parent 652e818456
commit f389fedadd
91 changed files with 1264 additions and 1192 deletions

View File

@@ -8,17 +8,18 @@ import (
"encoding/json"
"errors"
"fmt"
highbase "github.com/pb33f/libopenapi/datamodel/high/base"
"github.com/pb33f/libopenapi/datamodel/low"
lowbase "github.com/pb33f/libopenapi/datamodel/low/base"
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3"
"net/url"
"os"
"regexp"
"strings"
"testing"
"time"
highbase "github.com/pb33f/libopenapi/datamodel/high/base"
"github.com/pb33f/libopenapi/datamodel/low"
lowbase "github.com/pb33f/libopenapi/datamodel/low/base"
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3"
)
func TestRenderSchema(t *testing.T) {
@@ -1144,7 +1145,7 @@ properties:
loopMe = func(parent *highbase.SchemaProxy, level int) {
schemaProxy := buildSchema()
if parent != nil {
parent.Schema().Properties["child"] = schemaProxy
parent.Schema().Properties.Set("child", schemaProxy)
}
if level < 110 {
loopMe(schemaProxy, level+1)