diff options
Diffstat (limited to 'grc/core/schema_checker/domain.py')
-rw-r--r-- | grc/core/schema_checker/domain.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/grc/core/schema_checker/domain.py b/grc/core/schema_checker/domain.py new file mode 100644 index 0000000000..86c29ed3c6 --- /dev/null +++ b/grc/core/schema_checker/domain.py @@ -0,0 +1,16 @@ +from .utils import Spec, expand, str_ + +DOMAIN_CONNECTION = expand( + type=Spec(types=list, required=True, item_scheme=None), + connect=str_, +) + +DOMAIN_SCHEME = expand( + id=Spec(types=str_, required=True, item_scheme=None), + label=str_, + color=str_, + multiple_connections_per_input=bool, + multiple_connections_per_output=bool, + + templates=Spec(types=list, required=False, item_scheme=DOMAIN_CONNECTION) +)
\ No newline at end of file |