Skip to content

Commit

Permalink
Moved the file size from DirectoryFile to FileData, because it is ver…
Browse files Browse the repository at this point in the history
…sion-specific
  • Loading branch information
redsolver committed Aug 8, 2021
1 parent a38b6d1 commit 005e78e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions draft-01/directoryFile.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
"description": "Current version of the file. When this file was already modified 9 times, this value is 9",
"minimum": 0
},
"size": {
"type": "integer",
"description": "Unencrypted size of the file, in bytes",
"minimum": 0
},
"file": {
"$ref": "https://skystandards.hns.siasky.net/draft-01/fileData.schema.json",
"description": "The current version of a file"
Expand All @@ -53,7 +48,6 @@
"created",
"modified",
"version",
"size",
"file"
]
}
6 changes: 6 additions & 0 deletions draft-01/fileData.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"AEAD_XCHACHA20_POLY1305"
]
},
"size": {
"type": "integer",
"description": "Unencrypted size of the file, in bytes",
"minimum": 0
},
"chunkSize": {
"type": "integer",
"description": "maxiumum size of every unencrypted file chunk in bytes",
Expand All @@ -43,6 +48,7 @@
"encryptionType",
"chunkSize",
"hash",
"size",
"ts"
]
}

0 comments on commit 005e78e

Please sign in to comment.