mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Fix compatibility issue with Go 1.19.
This commit is contained in:
@@ -43,6 +43,11 @@ type componentBuildResult[T any] struct {
|
|||||||
value low.ValueReference[T]
|
value low.ValueReference[T]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type inputValue struct {
|
||||||
|
node *yaml.Node
|
||||||
|
currentLabel *yaml.Node
|
||||||
|
}
|
||||||
|
|
||||||
// GetExtensions returns all Components extensions and satisfies the low.HasExtensions interface.
|
// GetExtensions returns all Components extensions and satisfies the low.HasExtensions interface.
|
||||||
func (co *Components) GetExtensions() map[low.KeyReference[string]]low.ValueReference[any] {
|
func (co *Components) GetExtensions() map[low.KeyReference[string]]low.ValueReference[any] {
|
||||||
return co.Extensions
|
return co.Extensions
|
||||||
@@ -229,11 +234,6 @@ func extractComponentValues[T low.Buildable[N], N any](label string, root *yaml.
|
|||||||
return emptyResult, fmt.Errorf("node is array, cannot be used in components: line %d, column %d", nodeValue.Line, nodeValue.Column)
|
return emptyResult, fmt.Errorf("node is array, cannot be used in components: line %d, column %d", nodeValue.Line, nodeValue.Column)
|
||||||
}
|
}
|
||||||
|
|
||||||
type inputValue struct {
|
|
||||||
node *yaml.Node
|
|
||||||
currentLabel *yaml.Node
|
|
||||||
}
|
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
in := make(chan inputValue)
|
in := make(chan inputValue)
|
||||||
|
|||||||
Reference in New Issue
Block a user