Skip to content

Commit 7956c8f

Browse files
Merge pull request #231 from apify/feat/output-and-dataset-schema
feat: output and dataset schema
2 parents d8979f1 + 5e0890b commit 7956c8f

2 files changed

Lines changed: 51 additions & 1 deletion

File tree

packages/actor-scraper/sitemap-scraper/.actor/actor.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,28 @@
99
"storages": {
1010
"dataset": {
1111
"actorSpecification": 1,
12-
"fields": {},
12+
"fields": {
13+
"url": {
14+
"type": "string",
15+
"title": "URL",
16+
"description": "URL discovered in a sitemap."
17+
},
18+
"status": {
19+
"type": "integer",
20+
"title": "Status code",
21+
"description": "HTTP status code from the HEAD request."
22+
},
23+
"#error": {
24+
"type": "boolean",
25+
"title": "Error flag",
26+
"description": "True if the request failed after retries."
27+
},
28+
"#debug": {
29+
"type": "object",
30+
"title": "Debug info",
31+
"description": "Request debug info (id, retry count, errors, etc.)."
32+
}
33+
},
1334
"views": {}
1435
}
1536
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"title": "Sitemap Extractor Output",
3+
"type": "object",
4+
"description": "Each item represents a URL discovered in a sitemap and the result of a HEAD request. Failed requests may contain only error/debug metadata.",
5+
"schemaVersion": 1,
6+
"properties": {
7+
"url": {
8+
"title": "URL",
9+
"type": "string",
10+
"description": "URL discovered in a sitemap."
11+
},
12+
"status": {
13+
"title": "Status code",
14+
"type": "integer",
15+
"description": "HTTP status code from the HEAD request."
16+
},
17+
"#error": {
18+
"title": "Error flag",
19+
"type": "boolean",
20+
"description": "True if the request failed after retries."
21+
},
22+
"#debug": {
23+
"title": "Debug info",
24+
"type": "object",
25+
"description": "Request debug info (id, retry count, errors, etc.).",
26+
"additionalProperties": true
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)