Commit 8d0915bd authored by Siebers, Michael's avatar Siebers, Michael
Browse files

refined JSON schema for type path

parent 3a6372ce
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"properties": { "properties": {
"abs_path": { "abs_path": {
"description": "The path of the irrelevant file this explanation is for.", "description": "The path of the irrelevant file this explanation is for.",
"$ref": "type-abs_path-schema.json" "$ref": "type-path-schema.json"
}, },
"reasoning": { "reasoning": {
"description": "The top-view reason why the file is irrelevant.", "description": "The top-view reason why the file is irrelevant.",
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
"properties": { "properties": {
"abs_path": { "abs_path": {
"description": "The absolute path of the referenced item.", "description": "The absolute path of the referenced item.",
"$ref": "type-abs_path-schema.json" "$ref": "type-path-schema.json"
}, },
"property": { "property": {
"description": "The real-world property of the item that is references, like it's 'name' or its 'size'.", "description": "The real-world property of the item that is references, like it's 'name' or its 'size'.",
......
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
"type": "string", "type": "string",
"pattern": "directory" "pattern": "directory"
}, },
"abs_path": { "abs_path": { "description": "The unique identifier as absolute path",
"type": "string", "$ref": "type-path-schema.json"
"description": "The unique identifier as absolute path",
"minLength": 1
}, },
"creation_time": { "creation_time": {
"type": "integer", "type": "integer",
......
...@@ -10,9 +10,8 @@ ...@@ -10,9 +10,8 @@
"pattern": "file" "pattern": "file"
}, },
"abs_path": { "abs_path": {
"type": "string",
"description": "The unique identifier as absolute path", "description": "The unique identifier as absolute path",
"minLength": 0 "$ref": "type-path-schema.json"
}, },
"file_size": { "file_size": {
"type": "integer", "type": "integer",
......
{ {
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"$id": "type-abs_path-schema.json", "$id": "type-path-schema.json",
"title": "Absolute Path", "title": "Absolute Path",
"description": "An absolute path.", "description": "An absolute path.",
"type": "string", "type": "string",
"pattern": "^(/|.*[^/])$" "pattern": "^(/|.*[^/])$"
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment