mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +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:
@@ -381,6 +381,11 @@ func (s *Schema) FindProperty(name string) *low.ValueReference[*SchemaProxy] {
|
||||
return low.FindItemInMap[*SchemaProxy](name, s.Properties.Value)
|
||||
}
|
||||
|
||||
// GetExtensions returns all extensions for Schema
|
||||
func (s *Schema) GetExtensions() map[low.KeyReference[string]]low.ValueReference[any] {
|
||||
return s.Extensions
|
||||
}
|
||||
|
||||
// Build will perform a number of operations.
|
||||
// Extraction of the following happens in this method:
|
||||
// - Extensions
|
||||
|
||||
Reference in New Issue
Block a user