mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 20:47:49 +00:00
lookups are performed inline now. keeps things simpler, however it has a performance knock, so it's time to refine async building were possible.
21 lines
460 B
Go
21 lines
460 B
Go
package v3
|
|
|
|
import (
|
|
"github.com/pb33f/libopenapi/datamodel/low"
|
|
"gopkg.in/yaml.v3"
|
|
)
|
|
|
|
type XML struct {
|
|
Name low.NodeReference[string]
|
|
Namespace low.NodeReference[string]
|
|
Prefix low.NodeReference[string]
|
|
Attribute low.NodeReference[bool]
|
|
Wrapped low.NodeReference[bool]
|
|
Extensions map[low.KeyReference[string]]low.ValueReference[any]
|
|
}
|
|
|
|
func (x *XML) Build(root *yaml.Node) error {
|
|
x.Extensions = ExtractExtensions(root)
|
|
return nil
|
|
}
|