mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +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]
|
||||
}
|
||||
|
||||
type inputValue struct {
|
||||
node *yaml.Node
|
||||
currentLabel *yaml.Node
|
||||
}
|
||||
|
||||
// GetExtensions returns all Components extensions and satisfies the low.HasExtensions interface.
|
||||
func (co *Components) GetExtensions() map[low.KeyReference[string]]low.ValueReference[any] {
|
||||
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)
|
||||
}
|
||||
|
||||
type inputValue struct {
|
||||
node *yaml.Node
|
||||
currentLabel *yaml.Node
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
in := make(chan inputValue)
|
||||
|
||||
Reference in New Issue
Block a user