addonscript-spec/docs/schema/api_file.md
Timo Ley 481174b566
All checks were successful
continuous-integration/drone/pr Build is passing
API spec overhaul
2022-08-31 14:40:32 +02:00

755 B

API File Object

{
    "link": ["https://example.com/file.jar"],
    "hashes": {
        "sha1": "somesha1checksum"
    },
    "meta": {
        "additional": {}
    }
}

Required properties

This is an array of links, which are pointing to the actual file. This must be a http(s) link. All of these links must have the same file type.

Optional properties

hashes

This is an object with checksums for this file. The object contains key-value-pairs where the key is the hash algorithm and the value is the checksum.

Supported hash algorithms:

  • sha1

meta

This is a meta object containing metadata about the file. it may only contain additional metadata.