Mercurial > hgrepos > Python > libs > data-schema
comparison docs/schema.txt @ 31:271ec3abdfa3
Use "$type" as the schema's type specifier instead of "type".
THIS IS BACKWARDS INCOMPATIBLE.
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Tue, 18 Jul 2023 14:28:52 +0200 |
| parents | 68286d27f27d |
| children | 5a2fba996773 |
comparison
equal
deleted
inserted
replaced
| 30:2e7c08c356ee | 31:271ec3abdfa3 |
|---|---|
| 62 | 62 |
| 63 | 63 |
| 64 Typen | 64 Typen |
| 65 ===== | 65 ===== |
| 66 | 66 |
| 67 Durch ``type`` (required) gekennzeichnet | 67 Durch ``$type`` (required) gekennzeichnet |
| 68 | 68 |
| 69 | 69 |
| 70 Alle Schemata außer den `Schema-Kombinatoren`_ haben auch ein optionales | 70 Alle Schemata außer den `Schema-Kombinatoren`_ haben auch ein optionales |
| 71 Attribut ``index-constraint``. | 71 Attribut ``index-constraint``. |
| 72 | 72 |
| 89 - ``key-names`` | 89 - ``key-names`` |
| 90 | 90 |
| 91 Wenn vorhanden: ein Schema, dem die *Keys* -- auch die `additional-keys` -- | 91 Wenn vorhanden: ein Schema, dem die *Keys* -- auch die `additional-keys` -- |
| 92 folgen müssen. | 92 folgen müssen. |
| 93 | 93 |
| 94 Default: entspricht ``{"type": "string"}`` | 94 Default: entspricht ``{"$type": "string"}`` |
| 95 | 95 |
| 96 - ``additional-keys`` | 96 - ``additional-keys`` |
| 97 | 97 |
| 98 * bool | 98 * bool |
| 99 | 99 |
