Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions apify-api/openapi/components/schemas/datasets/Dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ properties:
type: string
description: ''
nullable: true
schema:
type: object
nullable: true
Comment on lines +50 to +52
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asking to describe the schema in OpenAPI would be too much, but a link to the output schema spec would be solid gold.

Also, could you add a minimal example here, too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added mentioned.
image

description: Defines the schema of items in your dataset, the full specification can be found in [Apify docs](/platform/actors/development/actor-definition/dataset-schema)
example:
actorSpecification: 1
title: "My dataset"
views:
overview:
title: "Overview"
transformation:
fields:
- "linkUrl"
display:
component: "table"
properties:
linkUrl:
label: "Link URL"
format: "link"
consoleUrl:
type: string
example: 'https://console.apify.com/storage/datasets/27TmTznX9YPeAYhkC'
stats:
$ref: ./DatasetStats.yaml
16 changes: 16 additions & 0 deletions apify-api/openapi/components/schemas/datasets/DatasetStats.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
title: DatasetStats
required:
- readCount
- writeCount
- storageBytes
type: object
properties:
readCount:
type: number
example: 22
writeCount:
type: number
example: 3
storageBytes:
type: number
example: 783