Skip to content

Commit

Permalink
added copy to test
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Jan 1, 2025
1 parent 0064a17 commit 643b503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datamodel/high/base/schema_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ func TestSchemaProxy_MarshalYAML_BadSchema(t *testing.T) {

func TestSchemaProxy_MarshalYAML_Inline_HTTP(t *testing.T) {

// this triggers http code by fudging references, found when importing from URLs directly.

first := `type: object
properties:
cakes:
Expand All @@ -444,11 +446,9 @@ properties:
_ = yaml.Unmarshal([]byte(first), &rootNode)

cf := index.CreateOpenAPIIndexConfig()
cf.IgnorePolymorphicCircularReferences = true
cf.SkipDocumentCheck = true

rolodex := index.NewRolodex(cf)

rolodex.SetRootNode(&rootNode)
rErr := rolodex.IndexTheRolodex()

Expand Down

0 comments on commit 643b503

Please sign in to comment.