syndicate-rs/syndicate-server/protocols/schemas/documentation.prs

12 lines
441 B
Plaintext
Raw Normal View History

2022-01-14 14:36:41 +00:00
version 1 .
2023-10-31 21:58:02 +00:00
# Assertion. Describes `object`.
2022-01-14 14:36:41 +00:00
Metadata = <metadata @object any @info { symbol: any ...:... }> .
2023-10-31 21:58:02 +00:00
# Projections of the `info` in a `Metadata` record.
2022-01-14 14:36:41 +00:00
Description = @present { description: IOList } / @invalid { description: any } / @absent {} .
Url = @present { url: string } / @invalid { url: any } / @absent {} .
2023-10-31 21:58:02 +00:00
# Data type. From preserves' `conventions.md`.
2022-01-14 14:36:41 +00:00
IOList = @bytes bytes / @string string / @nested [IOList ...] .