From 6a3ce151c4857f6842f3f653d95679377daaa790 Mon Sep 17 00:00:00 2001 From: Jerry Nixon <1749983+JerryNixon@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:16:15 -0700 Subject: [PATCH 1/8] Added properties --- schemas/dab.draft.schema.json | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/schemas/dab.draft.schema.json b/schemas/dab.draft.schema.json index 49ed1a2c0f..b1815140cb 100644 --- a/schemas/dab.draft.schema.json +++ b/schemas/dab.draft.schema.json @@ -139,6 +139,30 @@ "description": "Runtime configuration settings", "additionalProperties": false, "properties": { + "pagination": { + "type": "object", + "properties": { + "max-page-size": { + "type": "integer", + "description": "Defines the maximum number of records that can be returned in a single page of results. If set to null, the default value is 100,000.", + "default": 100000, + "minimum": 1 + }, + "default-page-size": { + "type": "integer", + "description": "Sets the default number of records returned in a single response. When this limit is reached, a continuation token is provided to retrieve the next page. If set to null, the default value is 100.", + "default": 100, + "minimum": 1 + }, + "max-db-response-size-mb": { + "type": "integer", + "description": "Specifies the maximum size, in megabytes, of the database response allowed in a single result. If set to null, the default value is 158 MB.", + "default": 158, + "minimum": 1, + "maximum": 158 + } + } + }, "rest": { "type": "object", "description": "Global REST endpoint configuration", @@ -177,7 +201,10 @@ "description": "Allow enabling/disabling GraphQL requests for all entities." }, "depth-limit": { - "type": [ "integer", "null" ], + "type": [ + "integer", + "null" + ], "description": "Maximum allowed depth of a GraphQL query.", "default": null }, @@ -806,4 +833,4 @@ ] } } -} +} \ No newline at end of file From 46497ee5c6678650d1ca67d78a2d8b9053ef63f4 Mon Sep 17 00:00:00 2001 From: Jerry Nixon <1749983+JerryNixon@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:21:08 -0700 Subject: [PATCH 2/8] Removed the unused -db- --- schemas/dab.draft.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/dab.draft.schema.json b/schemas/dab.draft.schema.json index b1815140cb..cb327486ef 100644 --- a/schemas/dab.draft.schema.json +++ b/schemas/dab.draft.schema.json @@ -154,7 +154,7 @@ "default": 100, "minimum": 1 }, - "max-db-response-size-mb": { + "max-response-size-mb": { "type": "integer", "description": "Specifies the maximum size, in megabytes, of the database response allowed in a single result. If set to null, the default value is 158 MB.", "default": 158, From 51501bff7be3165d37a6789ee61e6c18008900ff Mon Sep 17 00:00:00 2001 From: Jerry Nixon <1749983+JerryNixon@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:39:57 -0700 Subject: [PATCH 3/8] Moved under Host --- schemas/dab.draft.schema.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/schemas/dab.draft.schema.json b/schemas/dab.draft.schema.json index cb327486ef..5dfd375d69 100644 --- a/schemas/dab.draft.schema.json +++ b/schemas/dab.draft.schema.json @@ -153,13 +153,6 @@ "description": "Sets the default number of records returned in a single response. When this limit is reached, a continuation token is provided to retrieve the next page. If set to null, the default value is 100.", "default": 100, "minimum": 1 - }, - "max-response-size-mb": { - "type": "integer", - "description": "Specifies the maximum size, in megabytes, of the database response allowed in a single result. If set to null, the default value is 158 MB.", - "default": 158, - "minimum": 1, - "maximum": 158 } } }, @@ -234,6 +227,13 @@ "description": "Global hosting configuration", "additionalProperties": false, "properties": { + "max-response-size-mb": { + "type": "integer", + "description": "Specifies the maximum size, in megabytes, of the database response allowed in a single result. If set to null, the default value is 158 MB.", + "default": 158, + "minimum": 1, + "maximum": 158 + }, "mode": { "description": "Set if running in Development or Production mode", "type": "string", From f9d366f48bc527c05c94aef247d938e370b51909 Mon Sep 17 00:00:00 2001 From: Jerry Nixon <1749983+JerryNixon@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:33:16 -0600 Subject: [PATCH 4/8] Update schemas/dab.draft.schema.json Co-authored-by: Sean Leonard --- schemas/dab.draft.schema.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schemas/dab.draft.schema.json b/schemas/dab.draft.schema.json index 5dfd375d69..1d563dd8d0 100644 --- a/schemas/dab.draft.schema.json +++ b/schemas/dab.draft.schema.json @@ -143,7 +143,10 @@ "type": "object", "properties": { "max-page-size": { - "type": "integer", + "type": [ + "integer", + "null" + ], "description": "Defines the maximum number of records that can be returned in a single page of results. If set to null, the default value is 100,000.", "default": 100000, "minimum": 1 From 9716d865500ee720b0c2d9637f233c3facb0739e Mon Sep 17 00:00:00 2001 From: Jerry Nixon <1749983+JerryNixon@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:33:23 -0600 Subject: [PATCH 5/8] Update schemas/dab.draft.schema.json Co-authored-by: Sean Leonard --- schemas/dab.draft.schema.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schemas/dab.draft.schema.json b/schemas/dab.draft.schema.json index 1d563dd8d0..01eae848ae 100644 --- a/schemas/dab.draft.schema.json +++ b/schemas/dab.draft.schema.json @@ -152,7 +152,10 @@ "minimum": 1 }, "default-page-size": { - "type": "integer", + "type": [ + "integer", + "null" + ], "description": "Sets the default number of records returned in a single response. When this limit is reached, a continuation token is provided to retrieve the next page. If set to null, the default value is 100.", "default": 100, "minimum": 1 From 911c5897cdeaa38b14d20ab4c92645a0d779c598 Mon Sep 17 00:00:00 2001 From: Jerry Nixon <1749983+JerryNixon@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:33:31 -0600 Subject: [PATCH 6/8] Update schemas/dab.draft.schema.json Co-authored-by: Sean Leonard --- schemas/dab.draft.schema.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schemas/dab.draft.schema.json b/schemas/dab.draft.schema.json index 01eae848ae..ce4783386b 100644 --- a/schemas/dab.draft.schema.json +++ b/schemas/dab.draft.schema.json @@ -234,7 +234,10 @@ "additionalProperties": false, "properties": { "max-response-size-mb": { - "type": "integer", + "type": [ + "integer", + "null" + ] "description": "Specifies the maximum size, in megabytes, of the database response allowed in a single result. If set to null, the default value is 158 MB.", "default": 158, "minimum": 1, From 73dec8571b7c7115c92efa64e3e67f469d0485b8 Mon Sep 17 00:00:00 2001 From: Jerry Nixon <1749983+JerryNixon@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:34:38 -0600 Subject: [PATCH 7/8] Update dab.draft.schema.json --- schemas/dab.draft.schema.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/schemas/dab.draft.schema.json b/schemas/dab.draft.schema.json index ce4783386b..27b14fe6c3 100644 --- a/schemas/dab.draft.schema.json +++ b/schemas/dab.draft.schema.json @@ -145,7 +145,7 @@ "max-page-size": { "type": [ "integer", - "null" + null ], "description": "Defines the maximum number of records that can be returned in a single page of results. If set to null, the default value is 100,000.", "default": 100000, @@ -154,7 +154,7 @@ "default-page-size": { "type": [ "integer", - "null" + null ], "description": "Sets the default number of records returned in a single response. When this limit is reached, a continuation token is provided to retrieve the next page. If set to null, the default value is 100.", "default": 100, @@ -236,7 +236,7 @@ "max-response-size-mb": { "type": [ "integer", - "null" + null ] "description": "Specifies the maximum size, in megabytes, of the database response allowed in a single result. If set to null, the default value is 158 MB.", "default": 158, @@ -842,4 +842,4 @@ ] } } -} \ No newline at end of file +} From f234a4236bf86fccae9bbee4cd70522ae8f2c1a5 Mon Sep 17 00:00:00 2001 From: Jerry Nixon <1749983+JerryNixon@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:37:28 -0600 Subject: [PATCH 8/8] Update dab.draft.schema.json --- schemas/dab.draft.schema.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schemas/dab.draft.schema.json b/schemas/dab.draft.schema.json index 27b14fe6c3..89f50a5a88 100644 --- a/schemas/dab.draft.schema.json +++ b/schemas/dab.draft.schema.json @@ -145,7 +145,7 @@ "max-page-size": { "type": [ "integer", - null + "null" ], "description": "Defines the maximum number of records that can be returned in a single page of results. If set to null, the default value is 100,000.", "default": 100000, @@ -154,7 +154,7 @@ "default-page-size": { "type": [ "integer", - null + "null" ], "description": "Sets the default number of records returned in a single response. When this limit is reached, a continuation token is provided to retrieve the next page. If set to null, the default value is 100.", "default": 100, @@ -236,7 +236,7 @@ "max-response-size-mb": { "type": [ "integer", - null + "null" ] "description": "Specifies the maximum size, in megabytes, of the database response allowed in a single result. If set to null, the default value is 158 MB.", "default": 158,