2024-04-02 20:33:49 +00:00
|
|
|
{
|
2024-04-09 19:30:05 +00:00
|
|
|
"$id": "file.jsonschema",
|
2024-04-02 20:33:49 +00:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"title": "file",
|
|
|
|
"type": "object",
|
|
|
|
"required": [ "path", "filetype" ],
|
|
|
|
"properties": {
|
|
|
|
"path": {
|
2024-04-21 06:13:17 +00:00
|
|
|
"type": "string",
|
|
|
|
"description": "file path",
|
|
|
|
"minLength": 1
|
2024-04-02 20:33:49 +00:00
|
|
|
},
|
|
|
|
"owner": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"group": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"mode": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"atime": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time",
|
|
|
|
"description": "file access time in YYYY-MM-DDTHH:MM:SS.sssssssssZ format."
|
|
|
|
},
|
|
|
|
"ctime": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time",
|
|
|
|
"description": "file change time in YYYY-MM-DDTHH:MM:SS.sssssssssZ format."
|
|
|
|
},
|
|
|
|
"mtime": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time",
|
|
|
|
"description": "file modified time in YYYY-MM-DDTHH:MM:SS.sssssssssZ format."
|
|
|
|
},
|
|
|
|
"content": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "file content"
|
|
|
|
},
|
2024-07-01 21:54:18 +00:00
|
|
|
"sourceref": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "file content source uri"
|
|
|
|
},
|
2024-04-02 20:33:49 +00:00
|
|
|
"target": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "Symbolic link target path"
|
|
|
|
},
|
|
|
|
"filetype": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "file type",
|
|
|
|
"enum": [ "regular", "directory", "block", "char", "pipe", "symlink", "socket" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|