From e20942f8428a8615667c7b5cbbfcbdfbe15e8db1 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Mon, 11 Dec 2023 16:03:03 +0100 Subject: [PATCH] Removed IDE specific stuff --- .vscode/json-schema/codelist-subset.json | 53 ---- .vscode/json-schema/codelist.json | 129 -------- .vscode/json-schema/imports.json | 23 -- .vscode/json-schema/library.json | 51 ---- .vscode/json-schema/process.json | 68 ----- .vscode/json-schema/project.json | 32 -- .vscode/json-schema/schematron-meta.json | 90 ------ .../json-schema/semantic-model-content.json | 282 ------------------ .vscode/json-schema/semantic-model-meta.json | 237 --------------- .vscode/json-schema/semantic-model.json | 38 --- .vscode/json-schema/semantic-rules.json | 108 ------- .../json-schema/syntax-binding-content.json | 268 ----------------- .vscode/json-schema/syntax-binding-meta.json | 214 ------------- .vscode/json-schema/syntax-binding.json | 50 ---- .vscode/json-schema/syntax-validation.json | 207 ------------- .vscode/json-schema/transaction.json | 73 ----- .vscode/settings.json | 63 ---- 17 files changed, 1986 deletions(-) delete mode 100644 .vscode/json-schema/codelist-subset.json delete mode 100644 .vscode/json-schema/codelist.json delete mode 100644 .vscode/json-schema/imports.json delete mode 100644 .vscode/json-schema/library.json delete mode 100644 .vscode/json-schema/process.json delete mode 100644 .vscode/json-schema/project.json delete mode 100644 .vscode/json-schema/schematron-meta.json delete mode 100644 .vscode/json-schema/semantic-model-content.json delete mode 100644 .vscode/json-schema/semantic-model-meta.json delete mode 100644 .vscode/json-schema/semantic-model.json delete mode 100644 .vscode/json-schema/semantic-rules.json delete mode 100644 .vscode/json-schema/syntax-binding-content.json delete mode 100644 .vscode/json-schema/syntax-binding-meta.json delete mode 100644 .vscode/json-schema/syntax-binding.json delete mode 100644 .vscode/json-schema/syntax-validation.json delete mode 100644 .vscode/json-schema/transaction.json delete mode 100644 .vscode/settings.json diff --git a/.vscode/json-schema/codelist-subset.json b/.vscode/json-schema/codelist-subset.json deleted file mode 100644 index b659d55..0000000 --- a/.vscode/json-schema/codelist-subset.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "type": "object", - "additionalProperties": false, - "required": [ - "abstract", - "codes" - ], - "properties": { - "name": { - "$ref": "#/definitions/string_translatable" - }, - "description": { - "$ref": "#/definitions/string_translatable" - }, - "abstract": { - "type": "string" - }, - "codes": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - } - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/codelist.json b/.vscode/json-schema/codelist.json deleted file mode 100644 index a9a6fcb..0000000 --- a/.vscode/json-schema/codelist.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "type": "object", - "additionalProperties": false, - "required": [ - "metadata", - "content" - ], - "properties": { - "metadata": { - "$ref": "#/definitions/metadata" - }, - "content": { - "$ref": "#/definitions/content" - } - } - }, - "metadata": { - "type": "object", - "additionalProperties": false, - "required": [ - "title", - "identifier", - "version", - "language" - ], - "properties": { - "title": { - "$ref": "#/definitions/string_translatable" - }, - "description": { - "$ref": "#/definitions/string_translatable" - }, - "identifier": { - "$ref": "#/definitions/identifier" - }, - "version": { - "$ref": "#/definitions/version" - }, - "language": { - "type": "string" - }, - "agency": { - "type": "string" - }, - "subset": { - "$ref": "#/definitions/subset" - }, - "translations": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "subset": { - "type": "object" - }, - "content": { - "type": "array", - "items": { - "$ref": "#/definitions/code" - } - }, - "code": { - "type": "object", - "required": [ - "id", - "name" - ], - "properties": { - "id": { - "$ref": "#/definitions/identifier" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "description": { - "$ref": "#/definitions/string_translatable" - } - } - }, - "version": { - "type": "object", - "properties": { - "identifier": { - "$ref": "#/definitions/identifier" - }, - "status": { - "type": "string", - "enum": [ - "draft", - "review", - "published" - ] - } - } - }, - "identifier": { - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/imports.json b/.vscode/json-schema/imports.json deleted file mode 100644 index e0d2672..0000000 --- a/.vscode/json-schema/imports.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "additionalProperties": false, - "type": "array", - "items": { - "type": "object", - "required": [ - "path" - ], - "additionalProperties": false, - "properties": { - "path": { - "type": "string" - }, - "as": { - "type": "string" - }, - "from": { - "type": "string" - } - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/library.json b/.vscode/json-schema/library.json deleted file mode 100644 index 7362402..0000000 --- a/.vscode/json-schema/library.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "title": "Library configuration", - "patternProperties": { - "^.+$": { - "$ref": "#/definitions/definition" - } - } - }, - "definition": { - "title": "Library definition", - "type": "object", - "additionalProperties": false, - "required": [ - "url" - ], - "properties": { - "url": { - "title": "URL used to download library", - "type": "string" - }, - "path": { - "title": "Path inside library to be extracted", - "type": "string" - }, - "properties": { - "$ref": "#/definitions/properties" - } - } - }, - "properties": { - "title": "Properties used in url or path", - "type": "object", - "patternProperties": { - "^.+$": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/process.json b/.vscode/json-schema/process.json deleted file mode 100644 index a12a42d..0000000 --- a/.vscode/json-schema/process.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "additionalProperties": false, - "properties": { - "hugo": { - "type": "object", - "title": "Hugo configuration" - }, - "title": { - "title": "Process title", - "$ref": "#/definitions/string_translatable" - }, - "description": { - "title": "Process description", - "$ref": "#/definitions/string_translatable" - }, - "version": { - "type": "string", - "title": "Process version" - }, - "docs": { - "patternProperties": { - "^.*$": { - "type": "string" - } - } - }, - "features": { - "type": "object", - "additionalProperties": false, - "properties": { - "asciidoctor-pdf": { - "type": "boolean", - "default": false - } - } - }, - "status": { - "type": "string", - "enum": [ - "draft", - "active", - "legacy", - "disabled" - ] - } - } - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/project.json b/.vscode/json-schema/project.json deleted file mode 100644 index 7fac7e7..0000000 --- a/.vscode/json-schema/project.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "additionalProperties": false, - "properties": { - "hugo": { - "title": "Hugo configuration", - "type": "object" - }, - "languages": { - "type": "array", - "items": { - "$ref": "#/definitions/language" - } - } - } - }, - "language": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "title": { - "type": "string" - } - } - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/schematron-meta.json b/.vscode/json-schema/schematron-meta.json deleted file mode 100644 index 133a91d..0000000 --- a/.vscode/json-schema/schematron-meta.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "type": "object", - "additionalProperties": false, - "properties": { - "metadata": { - "$ref": "#/definitions/metadata" - }, - "changes": { - "$ref": "#/definitions/changes" - } - } - }, - "metadata": { - "type": "object", - "additionalProperties": false, - "properties": { - "title": { - "$ref": "#/definitions/string_translatable" - }, - "description": { - "$ref": "#/definitions/string_translatable" - } - } - }, - "changes": { - "type": "object", - "patternProperties": { - "^[^ ]+$": { - "$ref": "#/definitions/change" - } - } - }, - "change": { - "type": "object", - "additionalProperties": false, - "properties": { - "reference": { - "$ref": "#/definitions/references" - } - } - }, - "references": { - "type": "object", - "additionalProperties": false, - "properties": { - "codelist": { - "$ref": "#/definitions/reference" - }, - "rule": { - "$ref": "#/definitions/reference" - }, - "syntax": { - "$ref": "#/definitions/reference" - } - } - }, - "reference": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.{2,5}$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/semantic-model-content.json b/.vscode/json-schema/semantic-model-content.json deleted file mode 100644 index 28c639a..0000000 --- a/.vscode/json-schema/semantic-model-content.json +++ /dev/null @@ -1,282 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "oneOf": [ - { - "$ref": "#/definitions/item" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/item" - } - } - ] - }, - "item": { - "oneOf": [ - { - "$ref": "#/definitions/item_element" - }, - { - "$ref": "#/definitions/item_group" - }, - { - "$ref": "#/definitions/include" - } - ] - }, - "item_element": { - "type": "object", - "additionalProperties": false, - "required": [ - "id", - "name", - "cardinality", - "value" - ], - "properties": { - "id": { - "$ref": "#/definitions/id" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "value": { - "$ref": "#/definitions/value" - }, - "note": { - "$ref": "#/definitions/string_translatable" - }, - "section": { - "type": "string" - }, - "cardinality": { - "$ref": "#/definitions/cardinality" - }, - "requirement": { - "$ref": "#/definitions/requirements" - }, - "attribute": { - "type": "array", - "items": { - "$ref": "#/definitions/item_attribute" - } - } - } - }, - "item_attribute": { - "type": "object", - "additionalProperties": false, - "required": [ - "id", - "name", - "cardinality", - "value" - ], - "properties": { - "id": { - "$ref": "#/definitions/id" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "value": { - "$ref": "#/definitions/value" - }, - "note": { - "$ref": "#/definitions/string_translatable" - }, - "section": { - "type": "string" - }, - "cardinality": { - "$ref": "#/definitions/cardinality" - }, - "requirement": { - "$ref": "#/definitions/requirements" - } - } - }, - "item_group": { - "type": "object", - "additionalProperties": false, - "required": [ - "id", - "name", - "cardinality", - "children" - ], - "properties": { - "id": { - "$ref": "#/definitions/id" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "value": { - "$ref": "#/definitions/value" - }, - "note": { - "$ref": "#/definitions/string_translatable" - }, - "section": { - "type": "string" - }, - "cardinality": { - "$ref": "#/definitions/cardinality" - }, - "requirement": { - "$ref": "#/definitions/requirements" - }, - "children": { - "type": "array", - "items": { - "$ref": "#/definitions/item" - } - } - } - }, - "include": { - "type": "object", - "additionalProperties": false, - "properties": { - "include": { - "type": "string" - } - } - }, - "id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "cardinality": { - "anyOf": [ - { - "type": "string", - "pattern": "^[A-Z]+$" - }, - { - "type": "string", - "enum": [ - "0..1", - "1..1", - "0..n", - "1..n" - ] - }, - { - "type": "string", - "pattern": "^[\\d]+\\.\\.[\\dn]+$" - } - ] - }, - "requirements": { - "oneOf": [ - { - "$ref": "#/definitions/requirement" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/requirement" - } - } - ] - }, - "requirement": { - "type": "string" - }, - "value": { - "type": "object", - "additionalProperties": false, - "required": [ - "datatype" - ], - "properties": { - "datatype": { - "type": "string" - }, - "default": { - "$ref": "#/definitions/some_value" - }, - "example": { - "$ref": "#/definitions/some_value" - }, - "fixed": { - "$ref": "#/definitions/some_value" - }, - "codelist": { - "$ref": "#/definitions/some_value_array" - }, - "max_length": { - "type": "integer" - }, - "min_length": { - "type": "integer" - }, - "pattern": { - "type": "string" - } - } - }, - "some_value_array": { - "oneOf": [ - { - "$ref": "#/definitions/some_value" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/some_value" - } - } - ] - }, - "some_value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/semantic-model-meta.json b/.vscode/json-schema/semantic-model-meta.json deleted file mode 100644 index 5447284..0000000 --- a/.vscode/json-schema/semantic-model-meta.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "content": { - "oneOf": [ - { - "$ref": "#/definitions/item" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/item" - } - } - ] - }, - "item": { - "oneOf": [ - { - "$ref": "#/definitions/item_element" - }, - { - "$ref": "#/definitions/include" - } - ] - }, - "item_element": { - "type": "object", - "additionalProperties": false, - "required": [ - "id" - ], - "properties": { - "id": { - "$ref": "#/definitions/id" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "value": { - "$ref": "#/definitions/value" - }, - "note": { - "$ref": "#/definitions/string_translatable" - }, - "section": { - "type": "string" - }, - "cardinality": { - "$ref": "#/definitions/cardinality" - }, - "requirement": { - "$ref": "#/definitions/requirements" - }, - "attribute": { - "type": "array", - "items": { - "$ref": "#/definitions/item_attribute" - } - } - } - }, - "item_attribute": { - "type": "object", - "additionalProperties": false, - "required": [ - "id" - ], - "properties": { - "id": { - "$ref": "#/definitions/id" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "value": { - "$ref": "#/definitions/value" - }, - "note": { - "$ref": "#/definitions/string_translatable" - }, - "section": { - "type": "string" - }, - "cardinality": { - "$ref": "#/definitions/cardinality" - }, - "requirement": { - "$ref": "#/definitions/requirements" - } - } - }, - "include": { - "type": "object", - "additionalProperties": false, - "properties": { - "include": { - "type": "string" - } - } - }, - "id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "cardinality": { - "anyOf": [ - { - "type": "string", - "pattern": "^[A-Z]+$" - }, - { - "type": "string", - "enum": [ - "0..1", - "1..1", - "0..n", - "1..n" - ] - }, - { - "type": "string", - "pattern": "^[\\d]+\\.\\.[\\dn]+$" - } - ] - }, - "requirements": { - "oneOf": [ - { - "$ref": "#/definitions/requirement" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/requirement" - } - } - ] - }, - "requirement": { - "type": "string" - }, - "value": { - "type": "object", - "additionalProperties": false, - "properties": { - "datatype": { - "type": "string" - }, - "default": { - "$ref": "#/definitions/some_value" - }, - "example": { - "$ref": "#/definitions/some_value" - }, - "fixed": { - "$ref": "#/definitions/some_value" - }, - "codelist": { - "$ref": "#/definitions/some_value_array" - }, - "max_length": { - "type": "integer" - }, - "min_length": { - "type": "integer" - }, - "pattern": { - "type": "string" - } - } - }, - "some_value_array": { - "oneOf": [ - { - "$ref": "#/definitions/some_value" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/some_value" - } - } - ] - }, - "some_value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - }, - "document": { - "type": "object", - "additionalProperties": false, - "properties": { - "overrides": { - "$ref": "#/definitions/content" - } - } - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/semantic-model.json b/.vscode/json-schema/semantic-model.json deleted file mode 100644 index 075ed19..0000000 --- a/.vscode/json-schema/semantic-model.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "type": "object", - "additionalProperties": false, - "properties": { - "metadata": { - "$ref": "#/definitions/metadata" - }, - "content": { - "$ref": "semantic-model-content.json" - } - } - }, - "metadata": { - "type": "object", - "additionalProperties": false, - "properties": {} - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/semantic-rules.json b/.vscode/json-schema/semantic-rules.json deleted file mode 100644 index 5f76573..0000000 --- a/.vscode/json-schema/semantic-rules.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "type": "object", - "additionalProperties": false, - "required": [ - "title" - ], - "properties": { - "prefix": { - "type": "string" - }, - "title": { - "$ref": "#/definitions/string_translatable" - }, - "description": { - "$ref": "#/definitions/string_translatable" - }, - "scope": { - "$ref": "#/definitions/rules" - }, - "outside": { - "type": "array", - "items": { - "$ref": "#/definitions/string_translatable" - } - } - } - }, - "rules": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/definitions/string_translatable" - }, - { - "$ref": "#/definitions/rule" - } - ] - } - }, - "rule": { - "type": "object", - "additionalProperties": false, - "required": [ - "description" - ], - "properties": { - "id": { - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "description": { - "$ref": "#/definitions/string_translatable" - }, - "context": { - "$ref": "#/definitions/string_translatable" - }, - "term": { - "$ref": "#/definitions/references" - }, - "requirement": { - "$ref": "#/definitions/references" - } - } - }, - "references": { - "oneOf": [ - { - "$ref": "#/definitions/reference" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/reference" - } - } - ] - }, - "reference": { - "type": "string" - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.{2,5}$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/syntax-binding-content.json b/.vscode/json-schema/syntax-binding-content.json deleted file mode 100644 index 6a337ed..0000000 --- a/.vscode/json-schema/syntax-binding-content.json +++ /dev/null @@ -1,268 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/element", - "definitions": { - "attribute": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "element": { - "type": "string", - "pattern": "^\\w+$" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "reference": { - "$ref": "#/definitions/some_value_array" - }, - "rule": { - "$ref": "#/definitions/some_value_array" - }, - "value": { - "$ref": "#/definitions/value" - }, - "usage": { - "type": "string" - } - } - }, - "element": { - "oneOf": [ - { - "$ref": "#/definitions/element_children" - }, - { - "$ref": "#/definitions/element_value" - }, - { - "$ref": "#/definitions/include" - } - ] - }, - "element_children": { - "type": "object", - "additionalProperties": false, - "required": [ - "element", - "children" - ], - "properties": { - "id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "section": { - "type": "string" - }, - "cardinality": { - "$ref": "#/definitions/cardinality" - }, - "element": { - "type": "string", - "pattern": "^\\w+:\\w+$" - }, - "selector": { - "type": "string" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "reference": { - "$ref": "#/definitions/some_value_array" - }, - "rule": { - "$ref": "#/definitions/some_value_array" - }, - "attribute": { - "type": "array", - "items": { - "$ref": "#/definitions/attribute" - } - }, - "children": { - "type": "array", - "items": { - "$ref": "#/definitions/element" - } - } - } - }, - "element_value": { - "type": "object", - "additionalProperties": false, - "required": [ - "element" - ], - "properties": { - "id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "section": { - "type": "string" - }, - "cardinality": { - "$ref": "#/definitions/cardinality" - }, - "element": { - "type": "string", - "pattern": "^\\w+:\\w+$" - }, - "selector": { - "type": "string" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "value": { - "$ref": "#/definitions/value" - }, - "reference": { - "$ref": "#/definitions/some_value_array" - }, - "rule": { - "$ref": "#/definitions/some_value_array" - }, - "attribute": { - "type": "array", - "items": { - "$ref": "#/definitions/attribute" - } - } - } - }, - "include": { - "type": "object", - "additionalProperties": false, - "properties": { - "include": { - "type": "string" - },"attribute": { - "type": "array", - "items": { - "$ref": "#/definitions/attribute" - } - } - } - }, - "cardinality": { - "anyOf": [ - { - "enum": [ - "0..1", - "1..1", - "0..n", - "1..n" - ] - }, - { - "type": "string", - "pattern": "^[\\d]+\\.\\.[\\dn]+$" - } - ] - }, - "value": { - "type": "object", - "additionalProperties": false, - "properties": { - "datatype": { - "type": "string" - }, - "default": { - "$ref": "#/definitions/some_value" - }, - "example": { - "$ref": "#/definitions/some_value" - }, - "fixed": { - "$ref": "#/definitions/some_value" - }, - "codelist": { - "$ref": "#/definitions/some_value_array" - }, - "max_length": { - "type": "integer" - }, - "min_length": { - "type": "integer" - }, - "pattern": { - "type": "string" - } - } - }, - "some_value_array": { - "oneOf": [ - { - "$ref": "#/definitions/some_value" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/some_value" - } - } - ] - }, - "some_value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/syntax-binding-meta.json b/.vscode/json-schema/syntax-binding-meta.json deleted file mode 100644 index b4befbf..0000000 --- a/.vscode/json-schema/syntax-binding-meta.json +++ /dev/null @@ -1,214 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "type": "object", - "additionalProperties": false, - "properties": { - "overrides": { - "$ref": "#/definitions/content" - } - } - }, "attribute": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "element": { - "type": "string", - "pattern": "^\\w+$" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "reference": { - "$ref": "#/definitions/some_value_array" - }, - "rule": { - "$ref": "#/definitions/some_value_array" - }, - "value": { - "$ref": "#/definitions/value" - }, - "usage": { - "type": "string" - } - } - }, - "content": { - "oneOf": [ - { - "$ref": "#/definitions/item" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/item" - } - } - ] - }, - "item": { - "$ref": "#/definitions/element_value" - }, - "element_value": { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "section": { - "type": "string" - }, - "cardinality": { - "$ref": "#/definitions/cardinality" - }, - "element": { - "type": "string", - "pattern": "^\\w+:\\w+$" - }, - "selector": { - "type": "string" - }, - "name": { - "$ref": "#/definitions/string_translatable" - }, - "definition": { - "$ref": "#/definitions/string_translatable" - }, - "value": { - "$ref": "#/definitions/value" - }, - "reference": { - "$ref": "#/definitions/some_value_array" - }, - "rule": { - "$ref": "#/definitions/some_value_array" - }, - "attribute": { - "type": "array", - "items": { - "$ref": "#/definitions/attribute" - } - } - } - }, - "include": { - "type": "object", - "additionalProperties": false, - "properties": { - "include": { - "type": "string" - } - } - }, - "cardinality": { - "anyOf": [ - { - "enum": [ - "0..1", - "1..1", - "0..n", - "1..n" - ] - }, - { - "type": "string", - "pattern": "^[\\d]+\\.\\.[\\dn]+$" - } - ] - }, - "value": { - "type": "object", - "additionalProperties": false, - "properties": { - "datatype": { - "type": "string" - }, - "default": { - "$ref": "#/definitions/some_value" - }, - "example": { - "$ref": "#/definitions/some_value" - }, - "fixed": { - "$ref": "#/definitions/some_value" - }, - "codelist": { - "$ref": "#/definitions/some_value_array" - }, - "max_length": { - "type": "integer" - }, - "min_length": { - "type": "integer" - }, - "pattern": { - "type": "string" - } - } - }, - "some_value_array": { - "oneOf": [ - { - "$ref": "#/definitions/some_value" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/some_value" - } - } - ] - }, - "some_value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/syntax-binding.json b/.vscode/json-schema/syntax-binding.json deleted file mode 100644 index 152a743..0000000 --- a/.vscode/json-schema/syntax-binding.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "type": "object", - "additionalProperties": false, - "properties": { - "metadata": { - "$ref": "#/definitions/metadata" - }, - "content": { - "$ref": "syntax-binding-content.json" - } - } - }, - "metadata": { - "type": "object", - "additionalProperties": false, - "properties": { - "namespaces": { - "$ref": "#/definitions/namespace" - } - } - }, - "namespace": { - "type": "object", - "patternProperties": { - "^[a-z0-9]+$": { - "type": "string" - } - } - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/syntax-validation.json b/.vscode/json-schema/syntax-validation.json deleted file mode 100644 index 073c249..0000000 --- a/.vscode/json-schema/syntax-validation.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "$ref": "#/definitions/document", - "definitions": { - "document": { - "type": "object", - "additionalProperties": false, - "properties": { - "title": { - "$ref": "#/definitions/string_translatable" - }, - "description": { - "$ref": "#/definitions/string_translatable" - }, - "language": { - "type": "string" - }, - "namespace": { - "$ref": "#/definitions/namespaces" - }, - "let": { - "$ref": "#/definitions/let" - }, - "pattern": { - "type": "array", - "items": { - "$ref": "#/definitions/pattern" - } - } - } - }, - "pattern": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/rule" - } - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "id": { - "$ref": "#/definitions/id" - }, - "let": { - "$ref": "#/definitions/let" - }, - "rule": { - "type": "array", - "additionalItems": { - "$ref": "#/definitions/rule" - } - } - } - } - ] - }, - "rule": { - "oneOf": [ - { - "$ref": "#/definitions/rule_classic" - }, - { - "$ref": "#/definitions/rule_referenced" - } - ] - }, - "rule_classic": { - "type": "object", - "additionalProperties": false, - "required": [ - "context" - ], - "properties": { - "context": { - "type": "string" - }, - "let": { - "$ref": "#/definitions/let" - }, - "assert": { - "type": "array", - "items": { - "$ref": "#/definitions/assert" - } - } - } - }, - "rule_referenced": { - "type": "object", - "additionalProperties": false, - "required": [ - "context_ref" - ], - "properties": { - "context_ref": { - "type": "string" - }, - "let": { - "$ref": "#/definitions/let" - }, - "assert": { - "type": "array", - "items": { - "$ref": "#/definitions/assert" - } - } - } - }, - "assert": { - "type": "object", - "additionalProperties": false, - "required": [ - "test", - "message" - ], - "properties": { - "id": { - "$ref": "#/definitions/id" - }, - "flag": { - "type": "string" - }, - "test": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/string_translatable" - }, - "reference": { - "$ref": "#/definitions/references" - } - } - }, - "id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "let": { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - }, - "namespaces": { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - }, - "references": { - "type": "object", - "additionalProperties": false, - "properties": { - "codelist": { - "$ref": "#/definitions/reference" - }, - "rule": { - "$ref": "#/definitions/reference" - }, - "syntax": { - "$ref": "#/definitions/reference" - } - } - }, - "reference": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.{2,5}$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/json-schema/transaction.json b/.vscode/json-schema/transaction.json deleted file mode 100644 index f868ed6..0000000 --- a/.vscode/json-schema/transaction.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "definitions": { - "document": { - "type": "object", - "additionalProperties": false, - "properties": { - "hugo": { - "type": "object", - "title": "Hugo configuration" - }, - "title": { - "title": "Transaction title", - "$ref": "#/definitions/string_translatable" - }, - "description": { - "title": "Transaction description", - "$ref": "#/definitions/string_translatable" - }, - "docs": { - "patternProperties": { - "^.*$": { - "type": "string" - } - } - }, - "validation": { - "$ref": "#/definitions/validation" - }, - "features": { - "type": "object", - "additionalProperties": false, - "properties": { - "basic-rules": { - "type": "boolean", - "default": "true" - } - } - } - } - }, - "validation": { - "type": "object", - "additionalProperties": false, - "properties": { - "schematron": { - "type": "array", - "items": { - "type": "string" - } - }, - "xsd": { - "type": "string" - } - } - }, - "string_translatable": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "patternProperties": { - "^.+$": { - "type": "string" - } - } - } - ] - } - } -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index e145a7e..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "yaml.schemas": { - "file:///c%3A/Users/jerou/.vscode/extensions/atlassian.atlascode-2.10.7/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml", - ".vscode/json-schema/imports.json": ".imports.yaml", - ".vscode/json-schema/process.json": "process.yaml", - ".vscode/json-schema/project.json": "project.yaml", - ".vscode/json-schema/library.json": "library.yaml", - ".vscode/json-schema/transaction.json": "transaction.yaml", - ".vscode/json-schema/codelist.json": [ - "codelist/*.yaml", - "codelist/abstract/*.yaml", - "!.imports.yaml" - ], - ".vscode/json-schema/codelist-subset.json": [ - "codelist/subset/*.yaml", - "!.imports.yaml" - ], - ".vscode/json-schema/semantic-model.json": [ - "semantic-model/main.yaml", - "semantic-model.yaml" - ], - ".vscode/json-schema/semantic-model-content.json": [ - "semantic-model/*.yaml", - "semantic-model/**/*.yaml", - "!semantic-model/main.yaml", - "!.imports.yaml", - "!*.meta.yaml" - ], - ".vscode/json-schema/semantic-model-meta.json": [ - "semantic-model/*.meta.yaml" - ], - ".vscode/json-schema/semantic-rules.json": [ - "semantic-rules/*.yaml", - "!.imports.yaml" - ], - ".vscode/json-schema/syntax-binding.json": [ - "syntax-binding/main.yaml", - "syntax-binding.yaml" - ], - ".vscode/json-schema/syntax-binding-content.json": [ - "syntax-binding/*.yaml", - "syntax-binding/**/*.yaml", - "!syntax-binding/main.yaml", - "!.imports.yaml", - "!*.meta.yaml" - ], - ".vscode/json-schema/syntax-binding-meta.json": [ - "syntax-binding/*.meta.yaml" - ], - ".vscode/json-schema/syntax-validation.json": [ - "schematron/*.yaml", - "!*.meta.yaml", - "!.imports.yaml", - "!*.meta.yaml" - ], - ".vscode/json-schema/schematron-meta.json": [ - "schematron/*.meta.yaml" - ], - "file:///c%3A/Users/jerou/develop/OpenPEPPOL/reporting/.vscode/json-schema/syntax-binding-content.json": "file:///c%3A/Users/jerou/develop/OpenPEPPOL/reporting/src/reporting/trn-transaction_statistics/syntax-binding/main-old.yaml" - }, - // Until https://github.com/redhat-developer/vscode-yaml/issues/397 is fixed. - "yaml.schemaStore.enable": false, -} \ No newline at end of file