From bd7ada713a995ae188f8f8ecba83a935d9fdd1d7 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Mon, 13 Nov 2023 11:18:20 -0800 Subject: [PATCH] Add to #630: update `jsonapi-spec.md` too --- docs/jsonapi-spec.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/jsonapi-spec.md b/docs/jsonapi-spec.md index 1d09693805..03de2f53fc 100644 --- a/docs/jsonapi-spec.md +++ b/docs/jsonapi-spec.md @@ -389,6 +389,21 @@ The maximum length of a [field name](#json-document-field-names) is 48 character The maximum number of fields allowed in a single JSON object is 64. +The maximum number of fields allowed in a single JSON document is 1000. +This includes intermediate fields as well as leaf fields so that document like: + +```json +{ + "root": { + "branch": { + "leaf": 42 + } + } +} +``` + +has 3 fields: `root`, `root.branch`, and `root.branch.leaf`, for purposes of this limit. + #### Document Value Limits The maximum size of field values are: