Skip to content

Commit 73cad4f

Browse files
committed
Specify "any" dataty and datainfo
1 parent fd92b9e commit 73cad4f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

rfcs/RFC-002-schemata.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,16 +313,20 @@ A reference to another entity is one of two things:
313313
Datainfo
314314
--------
315315

316-
``datainfo`` entries are dictionaries with a key ``type`` (the name of the
317-
datainfo entity) and all members of the respective datainfo.
316+
``datainfo`` entries are either strings (the name of the datainfo entity) or
317+
dictionaries with a key ``type`` (the name of the datainfo entity) and all
318+
members of the respective datainfo.
319+
320+
``"any"`` is allowed for unspecified datainfos.
318321

319322

320323
JSON type
321324
---------
322325

323326
In ``dataty`` entries, you can specify the JSON type:
324327

325-
- Bool: ``dataty: bool``
328+
- Unspecified: ``dataty: any``
329+
- Boolean: ``dataty: bool``
326330
- String: ``dataty: string``
327331
- Number: ``dataty: number``
328332
- Integer: ``dataty: int``

0 commit comments

Comments
 (0)