implement new visitor method

This commit is contained in:
Jijie Wei
2020-06-18 13:20:33 -07:00
parent e4ba898e20
commit 25186e94af

View File

@@ -38,6 +38,11 @@ func (d *Delete) visitSequence(_ *yaml.RNode, _ string, _ *openapi.ResourceSchem
return nil
}
func (d *Delete) visitMapping(_ *yaml.RNode, _ string, _ *openapi.ResourceSchema) error {
// no-op
return nil
}
// visitScalar implements visitor
// visitScalar will remove the reference on each scalar field whose name matches.
func (d *Delete) visitScalar(object *yaml.RNode, p string, _ *openapi.ResourceSchema) error {