Is it possible to define a YAMLObject or a resolver for a YAMLObject that can handle lists of maps?
e.g.
class foo_data(yaml.YAMLObject):
yaml_tag = "!foo_data"
def __init__(self, some, data):
.
.
.
foo:
- some: ""
data: ""
- some: ""
data: ""
I can do it if I include the yaml tag defined in the class, but I'd prefer not to add more syntax for users to remember and for me to document. e.g.
foo:
- !foo_data
some: ""
data: ""
- !foo_data
some: ""
data: ""