Loïc Dachary
48b5884e36
the object that contains he asset is content adressable, it is a unique identifier
62 lines
1.5 KiB
JSON
62 lines
1.5 KiB
JSON
{
|
|
"title": "Release asset",
|
|
"description": "A file associated with a release. The content of the file is opaque.",
|
|
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"index": {
|
|
"description": "Unique identifier of the release asset.",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The name of the release asset.",
|
|
"type": "string"
|
|
},
|
|
"content_type": {
|
|
"description": "The content type of the release asset (application/zip, etc.).",
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"description": "Size in bytes of the release asset.",
|
|
"type": "number"
|
|
},
|
|
"download_count": {
|
|
"description": "The number of times the release asset was downloaded.",
|
|
"type": "number"
|
|
},
|
|
"download_url": {
|
|
"description": "The URL from which the release asset can be downloaded.",
|
|
"type": "string"
|
|
},
|
|
"created": {
|
|
"description": "Creation time.",
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated": {
|
|
"description": "Last update time.",
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"sha256": {
|
|
"description": "SHA256 of the cnotent of the asset.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"index",
|
|
"name",
|
|
"content_type",
|
|
"size",
|
|
"download_count",
|
|
"created",
|
|
"updated",
|
|
"sha256"
|
|
],
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"$id": "https://lab.forgefriends.org/friendlyforgeformat/f3-schemas/-/blob/v1.0/releaseasset.json",
|
|
"$$target": "releaseasset.json"
|
|
}
|