mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
(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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user