Churning through v3 models now.

mutations everywhere, for everyone!
This commit is contained in:
Dave Shanley
2023-03-07 10:34:27 -05:00
parent 4686635ce1
commit 3544ed0303
15 changed files with 431 additions and 67 deletions

View File

@@ -485,9 +485,10 @@ func TestDocument_MarshalYAML(t *testing.T) {
r, _ := h.Render()
info, _ := datamodel.ExtractSpecInfo(r)
lowDoc, _ = lowv3.CreateDocumentFromConfig(info, datamodel.NewOpenDocumentConfiguration())
highDoc := NewDocument(lowDoc)
lDoc, e := lowv3.CreateDocumentFromConfig(info, datamodel.NewOpenDocumentConfiguration())
assert.Nil(t, e)
highDoc := NewDocument(lDoc)
assert.Equal(t, "3.1.0", highDoc.Version)
// TODO: COMPLETE THIS