add schemas
Some checks failed
Declarative Tests / test (push) Waiting to run
Lint / golangci-lint (push) Has been cancelled

This commit is contained in:
Matthew Rich 2024-04-02 13:33:49 -07:00
parent 43487720e0
commit 28af02440a
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "document",
"type": "object",
"required": [ "resources" ],
"properties": {
"resources": {
"type": "array",
"description": "Resources list",
"items": {
"type": "object"
}
}
}
}

View File

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