(feat): Schema now has pointer back to SchemaProxy #29

The 'owning' `SchemaProxy` is now trackable back from a `Schema` part of the conversations happening on #29
This commit is contained in:
Dave Shanley
2022-12-05 12:18:10 -05:00
parent 9ccd3bc8b7
commit cbfb051a92
6 changed files with 16 additions and 1 deletions

View File

@@ -155,6 +155,10 @@ func Test_Schema(t *testing.T) {
assert.True(t, v.Value.Schema().ExclusiveMaximum.Value.A)
j := v.Value.Schema().FindProperty("somethingBProp").Value.Schema()
k := v.Value.Schema().FindProperty("somethingBProp").Value
assert.Equal(t, k, j.ParentProxy)
assert.NotNil(t, j)
assert.NotNil(t, j.XML.Value)
assert.Equal(t, "an xml thing", j.XML.Value.Name.Value)