mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
Refactored total change counts
Design is more uniformed and standardized, patterns are bubbling up. I think we're ready to tackle the schema soon. Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
@@ -66,6 +66,11 @@ func (ex *Example) Build(root *yaml.Node, idx *index.SpecIndex) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetExtensions will return Example extensions to satisfy the HasExtensions interface.
|
||||
func (ex *Example) GetExtensions() map[low.KeyReference[string]]low.ValueReference[any] {
|
||||
return ex.Extensions
|
||||
}
|
||||
|
||||
// ExtractExampleValue will extract a primitive example value (if possible), or just the raw Value property if not.
|
||||
func ExtractExampleValue(exp *yaml.Node) any {
|
||||
if utils.IsNodeBoolValue(exp) {
|
||||
|
||||
Reference in New Issue
Block a user