{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/artifact",
"title": "Artifact",
"description": "An artifact",
"type": "object",
"properties": {
"id": {
"type": "integer",
"example": 5
},
"node_id": {
"type": "string",
"example": "MDEwOkNoZWNrU3VpdGU1"
},
"name": {
"description": "The name of the artifact.",
"type": "string",
"example": "AdventureWorks.Framework"
},
"size_in_bytes": {
"description": "The size in bytes of the artifact.",
"type": "integer",
"example": 12345
},
"url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/artifacts/5"
},
"archive_download_url": {
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/artifacts/5/zip"
},
"expired": {
"description": "Whether or not the artifact has expired.",
"type": "boolean"
},
"created_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"expires_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"nullable": true
},
"workflow_run": {
"type": "object",
"nullable": true,
"properties": {
"id": {
"example": 10,
"type": "integer"
},
"repository_id": {
"example": 42,
"type": "integer"
},
"head_repository_id": {
"example": 42,
"type": "integer"
},
"head_branch": {
"example": "main",
"type": "string"
},
"head_sha": {
"example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d",
"type": "string"
}
}
}
},
"required": [
"id",
"node_id",
"name",
"size_in_bytes",
"url",
"archive_download_url",
"expired",
"created_at",
"expires_at",
"updated_at"
]
}