mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
more mutable objects, more tightening up
This commit is contained in:
@@ -45,9 +45,6 @@ func (e *Example) Render() ([]byte, error) {
|
||||
|
||||
// MarshalYAML will create a ready to render YAML representation of the Example object.
|
||||
func (e *Example) MarshalYAML() (interface{}, error) {
|
||||
if e == nil {
|
||||
return nil, nil
|
||||
}
|
||||
nb := high.NewNodeBuilder(e, e.low)
|
||||
return nb.Render(), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user