git.droids-corp.org
/
protos
/
libecoli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
node_any: check attribute presence
[protos/libecoli.git]
/
examples
/
yaml
/
test.yaml
diff --git
a/examples/yaml/test.yaml
b/examples/yaml/test.yaml
index
072fbce
..
5642766
100644
(file)
--- a/
examples/yaml/test.yaml
+++ b/
examples/yaml/test.yaml
@@
-1,16
+1,32
@@
-type: seq
-attrs:
- toto: 1
- titi: 2
-help: Say hello to someone
+type: or
children:
children:
-- type: str
- string: hello
-- type: or
- id: name
- help: Name of the person to greet
+- type: seq
+ id: hello
+ help: Say hello to someone
children:
- type: str
children:
- type: str
- string: john
+ string: hello
+ - type: or
+ id: name
+ help: Name of the person to greet
+ children:
+ - type: str
+ string: john
+ - type: str
+ string: mike
+- type: seq
+ id: goodbye
+ help: Say good bye to someone
+ children:
+ - type: str
+ string: good
- type: str
- type: str
- string: mike
+ string: bye
+ - type: or
+ id: name
+ help: Name of the person to greet
+ children:
+ - type: str
+ string: mary
+ - type: str
+ string: jessica