Skip to content

Commit 218d6cb

Browse files
feat: Add output schema to all templates (#577)
1 parent a9ed9b7 commit 218d6cb

File tree

101 files changed

+1974
-878
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1974
-878
lines changed

.github/workflows/test_python_templates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu-22.04, windows-latest]
12-
python-version: ["3.10", "3.11", "3.12", "3.13"]
12+
python-version: ['3.10', '3.11', '3.12', '3.13']
1313
runs-on: ${{ matrix.os }}
1414
timeout-minutes: 120
1515

templates/js-crawlee-playwright-camoufox/.actor/actor.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
"model": "<FILL-IN-MODEL>"
1010
},
1111
"input": "./input_schema.json",
12+
"output": "./output_schema.json",
13+
"storages": {
14+
"dataset": "./dataset_schema.json"
15+
},
1216
"dockerfile": "../Dockerfile"
1317
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"actorSpecification": 1,
3+
"fields": {},
4+
"views": {
5+
"overview": {
6+
"title": "Overview",
7+
"transformation": {
8+
"fields": ["title", "url"]
9+
},
10+
"display": {
11+
"component": "table",
12+
"properties": {
13+
"title": {
14+
"label": "Title",
15+
"format": "text"
16+
},
17+
"url": {
18+
"label": "URL",
19+
"format": "link"
20+
}
21+
}
22+
}
23+
}
24+
}
25+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"actorOutputSchemaVersion": 1,
3+
"title": "Output schema",
4+
"properties": {
5+
"overview": {
6+
"type": "string",
7+
"title": "Overview",
8+
"template": "{{links.apiDefaultDatasetUrl}}/items?view=overview"
9+
}
10+
}
11+
}

templates/js-crawlee-playwright-chrome/.actor/actor.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
"model": "<FILL-IN-MODEL>"
1010
},
1111
"input": "./input_schema.json",
12+
"output": "./output_schema.json",
13+
"storages": {
14+
"dataset": "./dataset_schema.json"
15+
},
1216
"dockerfile": "../Dockerfile"
1317
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"actorSpecification": 1,
3+
"fields": {},
4+
"views": {
5+
"overview": {
6+
"title": "Overview",
7+
"transformation": {
8+
"fields": ["title", "url"]
9+
},
10+
"display": {
11+
"component": "table",
12+
"properties": {
13+
"title": {
14+
"label": "Title",
15+
"format": "text"
16+
},
17+
"url": {
18+
"label": "URL",
19+
"format": "link"
20+
}
21+
}
22+
}
23+
}
24+
}
25+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"actorOutputSchemaVersion": 1,
3+
"title": "Output schema",
4+
"properties": {
5+
"overview": {
6+
"type": "string",
7+
"title": "Overview",
8+
"template": "{{links.apiDefaultDatasetUrl}}/items?view=overview"
9+
}
10+
}
11+
}

templates/js-crawlee-puppeteer-chrome/.actor/actor.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
"model": "<FILL-IN-MODEL>"
1010
},
1111
"input": "./input_schema.json",
12+
"output": "./output_schema.json",
13+
"storages": {
14+
"dataset": "./dataset_schema.json"
15+
},
1216
"dockerfile": "../Dockerfile"
1317
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"actorSpecification": 1,
3+
"fields": {},
4+
"views": {
5+
"overview": {
6+
"title": "Overview",
7+
"transformation": {
8+
"fields": ["title", "url"]
9+
},
10+
"display": {
11+
"component": "table",
12+
"properties": {
13+
"title": {
14+
"label": "Title",
15+
"format": "text"
16+
},
17+
"url": {
18+
"label": "URL",
19+
"format": "link"
20+
}
21+
}
22+
}
23+
}
24+
}
25+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"actorOutputSchemaVersion": 1,
3+
"title": "Output schema",
4+
"properties": {
5+
"overview": {
6+
"type": "string",
7+
"title": "Overview",
8+
"template": "{{links.apiDefaultDatasetUrl}}/items?view=overview"
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)