f3-schemas/releaseasset.json
Loïc Dachary 48b5884e36
releaseasset: add sha256 of the associated object
the object that contains he asset is content adressable, it is a
unique identifier
2024-01-17 08:28:43 +00:00

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"
}