Skip to content

Commit

Permalink
Add versions of venvironment(-basic) schema missing from last update (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-grimm authored Nov 7, 2024
1 parent d77c05d commit 9c188ae
Show file tree
Hide file tree
Showing 12 changed files with 33,383 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5248,7 +5248,14 @@
],
"url": "https://json.schemastore.org/venvironment-schema-v3.2.0.json",
"versions": {
"1.0.0": "https://json.schemastore.org/venvironment-schema-v1.0.0.json",
"1.1.0": "https://json.schemastore.org/venvironment-schema-v1.1.0.json",
"1.1.1": "https://json.schemastore.org/venvironment-schema-v1.1.1.json",
"2.0.0": "https://json.schemastore.org/venvironment-schema-v2.0.0.json",
"2.1.0": "https://json.schemastore.org/venvironment-schema-v2.1.0.json",
"2.2.0": "https://json.schemastore.org/venvironment-schema-v2.2.0.json",
"3.0.0": "https://json.schemastore.org/venvironment-schema-v3.0.0.json",
"3.1.0": "https://json.schemastore.org/venvironment-schema-v3.1.0.json",
"3.2.0": "https://json.schemastore.org/venvironment-schema-v3.2.0.json"
}
},
Expand All @@ -5265,7 +5272,11 @@
],
"url": "https://json.schemastore.org/venvironment-basic-schema-v3.2.0.json",
"versions": {
"2.2.0": "https://json.schemastore.org/venvironment-basic-schema-v2.1.0.json",
"1.0.0": "https://json.schemastore.org/venvironment-basic-schema-v1.0.0.json",
"1.1.0": "https://json.schemastore.org/venvironment-basic-schema-v1.1.0.json",
"2.0.0": "https://json.schemastore.org/venvironment-basic-schema-v2.0.0.json",
"2.1.0": "https://json.schemastore.org/venvironment-basic-schema-v2.1.0.json",
"3.0.0": "https://json.schemastore.org/venvironment-basic-schema-v3.0.0.json",
"3.2.0": "https://json.schemastore.org/venvironment-basic-schema-v3.2.0.json"
}
},
Expand Down
198 changes: 198 additions & 0 deletions src/schemas/json/venvironment-basic-schema-v1.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/venvironment-basic-schema-v1.0.0.json",
"$ref": "#/definitions/e0721/full",
"type": "object",
"title": "venvironment-basic schema",
"definitions": {
"e0721": {
"full": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "venvironment-basic schema",
"type": "object",
"additionalProperties": false,
"required": ["version"],
"properties": {
"version": {
"$ref": "#/definitions/ac6e5/full"
},
"includes": {
"$ref": "#/definitions/6c391/full"
},
"datasources": {
"$ref": "#/definitions/63f09/full"
},
"system-variables": {
"$ref": "#/definitions/b6d06/full"
}
}
}
},
"ac6e5": {
"full": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Version",
"description": "Json schema version for the vEnvironment-Basic configuration file. Acceptance criteria: equal major version, less/equal minor and patch version.",
"const": "1.0.0",
"type": "string",
"examples": ["1.0.0"]
}
},
"b6d06": {
"full": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "System Variables",
"description": "A lists of system variables to be used by the simulation.",
"type": "array",
"items": {
"$ref": "#/definitions/9f6ed/full"
},
"examples": [
[
{
"file-path": "path/to/my.vsysvar"
}
]
]
}
},
"6c391": {
"local": {
"one": {
"type": "string",
"pattern": "\\.([Yy][Aa][Mm][Ll]|[Jj][Ss][Oo][Nn])$"
}
},
"full": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Include files",
"description": "Include a different file (similar to #include of the c preprocessor). The order of includes does not matter. Circular / multiple includes are resolved correctly.",
"oneOf": [
{
"$ref": "#/definitions/6c391/local/one"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/6c391/local/one"
}
}
],
"examples": [
"my_include.yaml",
["my_include.yaml", "my_other_include.json"]
]
}
},
"63f09": {
"full": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Datasources",
"description": "The definition of datasources used by application models.",
"type": "object",
"additionalProperties": false,
"properties": {
"input-files": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["file-path"],
"properties": {
"file-path": {
"$ref": "#/definitions/59271/full"
}
}
}
}
},
"examples": [
{
"input-files": [
{
"file-path": "path/to/my.vcdl"
}
]
}
]
}
},
"59271": {
"full": {
"$schema": "http://json-schema.org/draft-07/schema#",
"anyOf": [
{
"$ref": "#/definitions/1440f/full"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/1440f/full"
},
"examples": [["path/to/my.vcdl"], ["path/to/my.vcodm"]]
}
],
"examples": ["path/to/my.vcdl", ["path/to/my.vcodm"]]
}
},
"9f6ed": {
"full": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "System variables",
"description": "Absolute or relative path to an external file containing system variables. Relative path specifications are resolved relative to the defining configuration file.",
"type": "object",
"additionalProperties": false,
"required": ["file-path"],
"properties": {
"file-path": {
"anyOf": [
{
"$ref": "#/definitions/94751/full"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/94751/full"
}
}
]
}
},
"examples": [
{
"file-path": "path/to/my.vsysvar"
}
]
}
},
"1440f": {
"full": {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Reference to external datasource files (.vcdl/.vcodm). Absolute or relative path. Relative path specifications are resolved relative to the defining configuration file.",
"type": "string",
"anyOf": [
{
"pattern": "^.*\\.[vV][cC][dD][lL]$"
},
{
"pattern": "^.*\\.[vV][cC][oO][dD][mM]$"
}
],
"examples": ["path/to/my.vcdl", "path/to/my.vcodm"]
}
},
"94751": {
"full": {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Absolute or relative path to a vsysvar file. Relative path specifications are resolved relative to the configuration file.",
"type": "string",
"anyOf": [
{
"pattern": "^.*\\.[vV][sS][yY][sS][vV][aA][rR]$"
}
],
"examples": ["path/to/my.vsysvar"]
}
}
}
}
Loading

0 comments on commit 9c188ae

Please sign in to comment.