jx/internal/resource/schemas/file.schema.json
Matthew Rich a6426da6e1
Some checks failed
Lint / golangci-lint (push) Successful in 9m53s
Declarative Tests / test (push) Failing after 5s
Declarative Tests / build-fedora (push) Successful in 2m12s
Declarative Tests / build-ubuntu-focal (push) Successful in 1m21s
add support for RSA keys/certs
2024-07-17 01:34:57 -07:00

56 lines
1.3 KiB
JSON

{
"$id": "file.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "file",
"type": "object",
"required": [ "path", "filetype" ],
"properties": {
"path": {
"type": "string",
"description": "file path",
"minLength": 1
},
"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"
},
"sourceref": {
"type": "string",
"description": "file content source uri"
},
"target": {
"type": "string",
"description": "Symbolic link target path"
},
"filetype": {
"type": "string",
"description": "file type",
"enum": [ "regular", "directory", "block", "char", "pipe", "symlink", "socket" ]
}
}
}