diff --git a/draft-01/directoryFile.schema.json b/draft-01/directoryFile.schema.json index 53951b3..614633f 100644 --- a/draft-01/directoryFile.schema.json +++ b/draft-01/directoryFile.schema.json @@ -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" @@ -53,7 +48,6 @@ "created", "modified", "version", - "size", "file" ] } \ No newline at end of file diff --git a/draft-01/fileData.schema.json b/draft-01/fileData.schema.json index c699fdf..5bb6dce 100644 --- a/draft-01/fileData.schema.json +++ b/draft-01/fileData.schema.json @@ -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", @@ -43,6 +48,7 @@ "encryptionType", "chunkSize", "hash", + "size", "ts" ] } \ No newline at end of file