comparison docs/schema.txt @ 38:5a2fba996773

Implement a "forbidden" schema field for dicts
author Franz Glasner <f.glasner@feldmann-mg.com>
date Wed, 19 Jul 2023 13:30:55 +0200
parents 271ec3abdfa3
children 78f5ef0ee087
comparison
equal deleted inserted replaced
37:ef586378f79a 38:5a2fba996773
50 Default: `None` (i.e. use the builtin 50 Default: `None` (i.e. use the builtin
51 :func:`data_schema.util.get_data_stream`) 51 :func:`data_schema.util.get_data_stream`)
52 52
53 A callable with an `uri` argument that returns a file-alike and a 53 A callable with an `uri` argument that returns a file-alike and a
54 context manager to be feed into the schema loader. 54 context manager to be feed into the schema loader.
55 55
56 - ``schema_loader`` 56 - ``schema_loader``
57 57
58 Default: configmix.yaml.load (if available) or ``None`` 58 Default: configmix.yaml.load (if available) or ``None``
59 59
60 A callable that returns a schema dict from a file object. This is 60 A callable that returns a schema dict from a file object. This is
115 Globales ``skip_keys`` wird aber zusätzlich noch in Betracht gezogen. 115 Globales ``skip_keys`` wird aber zusätzlich noch in Betracht gezogen.
116 116
117 - ``required`` 117 - ``required``
118 118
119 Liste von Strings mit Key-Namen, die vorkommen müssen 119 Liste von Strings mit Key-Namen, die vorkommen müssen
120
121 - ``forbidden``
122
123 Liste von Strings mit Key-Namen, die **nicht** vorkommen dürfen
120 124
121 - ``max-length`` 125 - ``max-length``
122 - ``min-length`` 126 - ``min-length``
123 127
124 128