From 02ea3a4a7ec6e861503d01ed3cbed410c6a43175 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 4 Jan 2015 17:33:34 +0100 Subject: [PATCH] commented some thoughts... --- structure-schema.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/structure-schema.yml b/structure-schema.yml index a9439f4..0dfef45 100644 --- a/structure-schema.yml +++ b/structure-schema.yml @@ -61,7 +61,7 @@ mapping: sequence: - type: map mapping: - "extension": + "extension": &extension type: map mapping: "name": @@ -71,7 +71,7 @@ mapping: type: str "referenceid": #reference id used in protocol definition or extension itself type: int - required: yes + required: yes #really? maybe not... "before": # standard is after the normal protocol structure, but could be used for vlan in ethernet for example. type: str "after": @@ -95,3 +95,25 @@ mapping: "desc": # description type: str required: yes +# constraints + +# even possible? +# how to implement? + +#maybe like this: +# "constraint": +# type: map +# mapping: +# "name": +# type: str +# "type": # hmm, maybe better in triggers with "function": ? +# enum: [ crc, ...? ] +# "triggers": +# type: seq +# .... +# "actions": +# type: seq +# sequence: +# - type: map +# mapping: +# "extension": *extension \ No newline at end of file