Skip to content

Commit d81592f

Browse files
committed
Updated schema for remote-file
1 parent 4fbae20 commit d81592f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/resources/file/remote-file-schema.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
3-
"$id": "https://www.codifycli.com/file.json",
4-
"title": "File resource",
5-
"description": "Manages a file.",
3+
"$id": "https://www.codifycli.com/remote-file.json",
4+
"title": "Remote file resource",
5+
"description": "Represents a file stored on codify cloud. Use apply to pull changes from remote and save to local. Use refresh and import to upload changes to remote.",
66
"type": "object",
77
"properties": {
88
"path": {
99
"type": "string",
10-
"description": "The location of the file."
10+
"description": "The local path of the file."
1111
},
1212
"remote": {
1313
"type": "string",
14-
"description": "The contents of the file."
14+
"description": "The remote codify cloud file path. This should be in the format of codify://<uuid>:<file_path>"
15+
},
16+
"hash": {
17+
"type": "string",
18+
"description": "The md5 hash of the file."
1519
},
1620
"onlyCreate": {
1721
"type": "boolean",
18-
"description": "Forces the resource to only create the file if it doesn't exist but don't detect any content changes."
22+
"description": "Forces the resource to only create the file if it doesn't exist but don't detect any content changes. Also skips uploading the file to Codify cloud on refresh and import."
1923
}
2024
},
2125
"required": ["path", "remote"],

0 commit comments

Comments
 (0)