From 0c6e8ce142d7549b90eff1bdfc3b1d63d4a5c4e6 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 26 Apr 2024 11:18:29 -0400 Subject: [PATCH] chore(sty): Run prettier on metaschema.json to reduce future diffs --- src/metaschema.json | 176 +++++++++++++++++++++++++++----------------- 1 file changed, 110 insertions(+), 66 deletions(-) diff --git a/src/metaschema.json b/src/metaschema.json index 82ba36264b..a3e500dad7 100644 --- a/src/metaschema.json +++ b/src/metaschema.json @@ -7,8 +7,7 @@ "properties": { "associations": { "type": "object", - "patternProperties": - { + "patternProperties": { "^[a-zA-Z0-9_]+$": { "type": "object", "properties": { @@ -28,7 +27,8 @@ "anyOf": [ { "type": "string" - }, { + }, + { "type": "array", "items": { "type": "string" @@ -126,23 +126,23 @@ "additionalProperties": false }, "common_principles": { - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9_]+$": { - "type": "object", - "properties": { - "display_name": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "required": ["display_name", "description"], - "additionalProperties": false - }, - "additionalProperties": false - } + "type": "object", + "patternProperties": { + "^[a-zA-Z0-9_]+$": { + "type": "object", + "properties": { + "display_name": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": ["display_name", "description"], + "additionalProperties": false + }, + "additionalProperties": false + } }, "datatypes": { "type": "object", @@ -191,7 +191,13 @@ "type": "array" } }, - "required": ["name", "display_name", "description", "type", "format"], + "required": [ + "name", + "display_name", + "description", + "type", + "format" + ], "additionalProperties": false } }, @@ -312,7 +318,7 @@ "$ref": "http://json-schema.org/draft-07/schema#/properties/type" } }, - "required": ["name","display_name", "description"] + "required": ["name", "display_name", "description"] } }, "additionalProperties": false @@ -358,8 +364,20 @@ } } }, - "required": ["columns", "common_principles", "datatypes", "entities", "enums", "extensions", "files", "formats", "metadata", "modalities", "suffixes"], - "additionalProperties": false + "required": [ + "columns", + "common_principles", + "datatypes", + "entities", + "enums", + "extensions", + "files", + "formats", + "metadata", + "modalities", + "suffixes" + ], + "additionalProperties": false }, "rules": { "type": "object", @@ -376,20 +394,20 @@ "issues": { "type": "object", "properties": { - "code": {"type": "string"}, - "message": {"type": "string"}, - "level": {"enum": ["error", "warning"]} + "code": { "type": "string" }, + "message": { "type": "string" }, + "level": { "enum": ["error", "warning"] } }, "required": ["code", "message", "level"], "additionalProperties": false }, "selectors": { "type": "array", - "items": {"type": "string"} + "items": { "type": "string" } }, "checks": { "type": "array", - "items": {"type": "string"} + "items": { "type": "string" } } }, "required": ["checks", "selectors"] @@ -476,7 +494,7 @@ "^derivatives$": { "type": "object", "properties": { - "common_derivatives": {"$ref": "#/definitions/sidecar"} + "common_derivatives": { "$ref": "#/definitions/sidecar" } }, "required": ["common_derivatives"], "additionalProperties": false @@ -498,9 +516,7 @@ "$ref": "#/definitions/tabular_data" } }, - "required": [ - "common_derivatives" - ], + "required": ["common_derivatives"], "additionalProperties": false }, "^(?!derivatives$)[a-z_]+$": { @@ -511,7 +527,7 @@ }, "common_principles": { "type": "array", - "items": {"type": "string"} + "items": { "type": "string" } }, "dataset_metadata": { "type": "object" @@ -521,7 +537,7 @@ }, "entities": { "type": "array", - "items": {"type": "string"} + "items": { "type": "string" } }, "errors": { "type": "object", @@ -529,9 +545,9 @@ "^[a-zA-Z0-9_]+$": { "type": "object", "properties": { - "code": {"type": "string"}, - "message": {"type": "string"}, - "level": {"enum": ["error", "warning"]}, + "code": { "type": "string" }, + "message": { "type": "string" }, + "level": { "enum": ["error", "warning"] }, "selectors": { "type": "array", "items": { @@ -553,7 +569,7 @@ "properties": { "datatypes": { "type": "array", - "items": {"pattern": "^[a-z]+$"} + "items": { "pattern": "^[a-z]+$" } } }, "required": ["datatypes"], @@ -563,15 +579,15 @@ } }, "required": [ - "entities", - "files", - "sidecars", - "tabular_data", - "common_principles", - "dataset_metadata", - "directories", - "errors", - "modalities" + "entities", + "files", + "sidecars", + "tabular_data", + "common_principles", + "dataset_metadata", + "directories", + "errors", + "modalities" ], "additionalProperties": false }, @@ -593,14 +609,14 @@ "patternProperties": { "^[a-z]+$": { "anyOf": [ - {"enum": ["optional", "required"]}, + { "enum": ["optional", "required"] }, { "type": "object", "properties": { - "level": {"enum": ["optional", "required"]}, + "level": { "enum": ["optional", "required"] }, "enum": { "type": "array", - "items": {"type": "string"} + "items": { "type": "string" } } }, "required": ["level", "enum"] @@ -618,24 +634,38 @@ "properties": { "selectors": { "type": "array", - "items": {"type": "string"} + "items": { "type": "string" } }, "fields": { "type": "object", "patternProperties": { "^[a-zA-Z0-9_]+$": { "anyOf": [ - {"enum": ["recommended", "optional", "required", "deprecated"]}, { - "type": "object", + "enum": [ + "recommended", + "optional", + "required", + "deprecated" + ] + }, + { + "type": "object", "properties": { - "level": {"enum": ["recommended", "optional", "required", "deprecated"]}, - "level_addendum": {"type": "string"} + "level": { + "enum": [ + "recommended", + "optional", + "required", + "deprecated" + ] + }, + "level_addendum": { "type": "string" } }, "required": ["level", "level_addendum"], "additionalProperties": false }, - {"pattern": "recommended.*"} + { "pattern": "recommended.*" } ] } }, @@ -656,25 +686,39 @@ "properties": { "selectors": { "type": "array", - "items": {"type": "string"} + "items": { "type": "string" } }, "columns": { "type": "object", "patternProperties": { "^[a-zA-Z0-9_]+$": { "anyOf": [ - {"enum": ["recommended", "optional", "required", "deprecated"]}, { - "type": "object", + "enum": [ + "recommended", + "optional", + "required", + "deprecated" + ] + }, + { + "type": "object", "properties": { - "level": {"enum": ["recommended", "optional", "required", "deprecated"]}, - "level_addendum": {"type": "string"}, - "description_addendum": {"type": "string"} + "level": { + "enum": [ + "recommended", + "optional", + "required", + "deprecated" + ] + }, + "level_addendum": { "type": "string" }, + "description_addendum": { "type": "string" } }, "required": ["level"], "additionalProperties": false }, - {"pattern": "recommended.*"} + { "pattern": "recommended.*" } ] } }, @@ -683,10 +727,10 @@ "additional_columns": { "type": "string" }, - "index_columns": {"type": "array", "items": {"type": "string"}}, + "index_columns": { "type": "array", "items": { "type": "string" } }, "initial_columns": { "type": "array", - "items": {"type": "string"} + "items": { "type": "string" } } }, "required": ["selectors", "columns"],