From afebbbf5e327d1ce96e317cd8284bce1f24e7b95 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Wed, 8 May 2024 14:28:19 +0100 Subject: [PATCH] fix only top versions --- .../Schemas/dbtEcommerce_0.8.2.json | 34 +++++++++++--- .../Schemas/dbtMediaPlayer_0.7.2.json | 28 ++++++++--- .../Schemas/dbtUnified_0.4.0.json | 2 +- .../Schemas/dbtUtils_0.16.4.json | 46 ++++++++++++++----- .../Schemas/exclude_from_checks.txt | 1 + 5 files changed, 86 insertions(+), 25 deletions(-) diff --git a/src/components/JsonSchemaValidator/Schemas/dbtEcommerce_0.8.2.json b/src/components/JsonSchemaValidator/Schemas/dbtEcommerce_0.8.2.json index 05c626e736..aae7b66898 100644 --- a/src/components/JsonSchemaValidator/Schemas/dbtEcommerce_0.8.2.json +++ b/src/components/JsonSchemaValidator/Schemas/dbtEcommerce_0.8.2.json @@ -16,10 +16,15 @@ "title": "SQL & Alias", "properties": { "sql": { - "type": "string" + "type": "string", + "title": "Field SQL", + "format": "sql", + "order": 1 }, "alias": { - "type": "string" + "type": "string", + "title": "Field Alias", + "order": 2 } }, "required": [ @@ -358,11 +363,15 @@ "properties": { "schema": { "type": "string", + "title": "(JSON) schema name for the field", + "order": 1, "description": "The schema name of your events table, atomic in most use cases, alternatively for sdes/contexts this should instead be the name of the field itself" }, "field": { "type": "string", - "description": "The name of the field to use as session identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" + "order": 2, + "title": "Field name", + "description": "The name of the field to use as user identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" } }, "required": [ @@ -410,10 +419,14 @@ "properties": { "schema": { "type": "string", + "title": "(JSON) schema name for the field", + "order": 1, "description": "The schema name of your events table, atomic in most use cases, alternatively for sdes/contexts this should instead be the name of the field itself" }, "field": { "type": "string", + "title": "Field name", + "order": 2, "description": "The name of the field to use as user identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" } }, @@ -514,19 +527,26 @@ "properties": { "schema": { "type": "string", - "description": "Table name" + "title": "Table name", + "description": "Table name", + "order": 1 }, "prefix": { "type": "string", - "description": "Prefix to add to columns" + "title": "Column prefix", + "description": "Prefix to add to columns", + "order": 2 }, "alias": { "type": "string", - "description": "Table alias for the subquery" + "title": "CTE Alias", + "description": "Table alias for the subquery", + "order": 3 }, "single_entity": { "type": "boolean", - "title": "Is single entity?" + "title": "Is single entity?", + "order": 4 } }, "required": [ diff --git a/src/components/JsonSchemaValidator/Schemas/dbtMediaPlayer_0.7.2.json b/src/components/JsonSchemaValidator/Schemas/dbtMediaPlayer_0.7.2.json index 20d0c20213..134c6ec05f 100644 --- a/src/components/JsonSchemaValidator/Schemas/dbtMediaPlayer_0.7.2.json +++ b/src/components/JsonSchemaValidator/Schemas/dbtMediaPlayer_0.7.2.json @@ -230,6 +230,7 @@ }, "surrogate_key_treat_nulls_as_empty_strings": { "type": "boolean", + "order": 999, "title": "Surrogate Key Treat Nulls as Empty Strings", "group": "Operation and Logic", "longDescription": "Passed through to `dbt_utils` to match legacy surrogate key behavior.", @@ -253,11 +254,15 @@ "properties": { "schema": { "type": "string", + "title": "(JSON) schema name for the field", + "order": 1, "description": "The schema name of your events table, atomic in most use cases, alternatively for sdes/contexts this should instead be the name of the field itself" }, "field": { "type": "string", - "description": "The name of the field to use as user identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" + "order": 2, + "title": "Field name", + "description": "The name of the field to use as session identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" } }, "required": [ @@ -305,10 +310,14 @@ "properties": { "schema": { "type": "string", + "title": "(JSON) schema name for the field", + "order": 1, "description": "The schema name of your events table, atomic in most use cases, alternatively for sdes/contexts this should instead be the name of the field itself" }, "field": { "type": "string", + "order": 2, + "title": "Field name", "description": "The name of the field to use as user identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" } }, @@ -512,22 +521,29 @@ "items": { "type": "object", "title": "Entity or SDE", - "properties": { + "properties": { "schema": { "type": "string", - "description": "Table name" + "title": "Table name", + "description": "Table name", + "order": 1 }, "prefix": { "type": "string", - "description": "Prefix to add to columns" + "title": "Column prefix", + "description": "Prefix to add to columns", + "order": 2 }, "alias": { "type": "string", - "description": "Table alias for the subquery" + "title": "CTE Alias", + "description": "Table alias for the subquery", + "order": 3 }, "single_entity": { "type": "boolean", - "title": "Is single entity?" + "title": "Is single entity?", + "order": 4 } }, "required": [ diff --git a/src/components/JsonSchemaValidator/Schemas/dbtUnified_0.4.0.json b/src/components/JsonSchemaValidator/Schemas/dbtUnified_0.4.0.json index c062f410d8..017b7083e3 100644 --- a/src/components/JsonSchemaValidator/Schemas/dbtUnified_0.4.0.json +++ b/src/components/JsonSchemaValidator/Schemas/dbtUnified_0.4.0.json @@ -527,7 +527,7 @@ "type": "string", "order": 2, "title": "Field name", - "description": "The name of the field to use as user identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" + "description": "The name of the field to use as session identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" } }, "required": [ diff --git a/src/components/JsonSchemaValidator/Schemas/dbtUtils_0.16.4.json b/src/components/JsonSchemaValidator/Schemas/dbtUtils_0.16.4.json index a71e16ff17..92df9b620d 100644 --- a/src/components/JsonSchemaValidator/Schemas/dbtUtils_0.16.4.json +++ b/src/components/JsonSchemaValidator/Schemas/dbtUtils_0.16.4.json @@ -16,10 +16,15 @@ "title": "SQL & Alias", "properties": { "sql": { - "type": "string" + "type": "string", + "title": "Field SQL", + "format": "sql", + "order": 1 }, "alias": { - "type": "string" + "type": "string", + "title": "Field Alias", + "order": 2 } }, "required": [ @@ -203,10 +208,16 @@ "title": "Identifier", "properties": { "schema": { - "type": "string" + "type": "string", + "title": "(JSON) schema name for the field", + "order": 1, + "description": "The schema name of your events table, atomic in most use cases, alternatively for sdes/contexts this should instead be the name of the field itself" }, "field": { - "type": "string" + "type": "string", + "order": 2, + "title": "Field name", + "description": "The name of the field to use as session identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" } }, "required": [ @@ -253,10 +264,16 @@ "title": "Identifier", "properties": { "schema": { - "type": "string" + "type": "string", + "title": "(JSON) schema name for the field", + "order": 1, + "description": "The schema name of your events table, atomic in most use cases, alternatively for sdes/contexts this should instead be the name of the field itself" }, "field": { - "type": "string" + "type": "string", + "order": 2, + "title": "Field name", + "description": "The name of the field to use as user identifier, alternatively, in case of sdes/contexts it is the name of the element that refers to the field to be extracted" } }, "required": [ @@ -295,19 +312,26 @@ "properties": { "schema": { "type": "string", - "description": "Table name" + "title": "Table name", + "description": "Table name", + "order": 1 }, "prefix": { "type": "string", - "description": "Prefix to add to columns" + "title": "Column prefix", + "description": "Prefix to add to columns", + "order": 2 }, "alias": { "type": "string", - "description": "Table alias for the subquery" + "title": "CTE Alias", + "description": "Table alias for the subquery", + "order": 3 }, "single_entity": { "type": "boolean", - "title": "Is single entity?" + "title": "Is single entity?", + "order": 4 } }, "required": [ @@ -319,4 +343,4 @@ "uniqueItems": true } } -} \ No newline at end of file +} diff --git a/src/components/JsonSchemaValidator/Schemas/exclude_from_checks.txt b/src/components/JsonSchemaValidator/Schemas/exclude_from_checks.txt index d872fed5b5..ff35c4d62a 100644 --- a/src/components/JsonSchemaValidator/Schemas/exclude_from_checks.txt +++ b/src/components/JsonSchemaValidator/Schemas/exclude_from_checks.txt @@ -18,4 +18,5 @@ src/components/JsonSchemaValidator/Schemas/dbtUtils_0.15.2.json src/components/JsonSchemaValidator/Schemas/dbtUtils_0.16.0.json src/components/JsonSchemaValidator/Schemas/dbtUtils_0.16.1.json src/components/JsonSchemaValidator/Schemas/dbtUtils_0.16.2.json +src/components/JsonSchemaValidator/Schemas/dbtUtils_0.16.3.json src/components/JsonSchemaValidator/Schemas/dbtWeb*