mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 04:20:17 +00:00
(feat): Unpack extensions into complex function types #8
The more in-depth we use extensions, the more likely is is that we need custom extensions. New `UnpackExtensions` function in the high package makes this easy. Low level models have been updated to support feature fully and docs added in README and examples as well. Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
@@ -207,5 +207,6 @@ allowEmptyValue: true
|
||||
assert.Equal(t, "int", v.Value.A) // A is v2
|
||||
assert.True(t, n.GetRequired().Value)
|
||||
assert.True(t, n.GetAllowEmptyValue().Value)
|
||||
assert.Len(t, n.GetExtensions(), 1)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user