Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

030-interface: update documentation to reflect actual data type limits #373

Merged
merged 1 commit into from
May 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions doc/pages/architecture/030-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,17 @@ The following types are supported:
* `boolean`: Either `true` or `false`, adhering to JSON boolean type.
* `longinteger`: A signed 64 bit integer (please note that `longinteger` is represented as a string
by default in JSON-based APIs.).
* `string`: An UTF-8 string.
* `binaryblob`: An arbitrary sequence of any byte that should be shorter than 1 MiB. (`binaryblob`
* `string`: An UTF-8 string, at most 65536 bytes long.
* `binaryblob`: An arbitrary sequence of any byte that should be shorter than 64 KiB. (`binaryblob`
is represented as a base64 string by default in JSON-based APIs.).
* `datetime`: A UTC timestamp, internally represented as milliseconds since 1st Jan 1970 using a
signed 64 bits integer. (`datetime` is represented as an ISO 8601 string by default in JSON based
APIs.)
* `doublearray`, `integerarray`, `booleanarray`, `longintegerarray`, `stringarray`,
`binaryblobarray`, `datetimearray`: A list of values, represented as a JSON Array. Arrays can have
up to 32768 items, must be shorter than 1MiB, and each item must be shorter than 64KiB. In
particular, text fields must be shorter than 32000 characters.
up to 1024 items and each item must respect the limits of its scalar type (_i.e._ each string in a
`stringarray` must be at most 65535 bytes long, each binary blob in a `binaryblobarray` must be
shorter than 64 KiB.

Make sure that the differences between two distinct interface names are not limited to the casing or
the presence of hyphens. This situation leads to a collision in the interface names which brings to
Expand Down