Skip to content

Commit 597ece6

Browse files
authored
Merge pull request #467 from ahx/profile-large
Change "large" benchmark to load many referenced files
2 parents cd4de96 + 96b5f11 commit 597ece6

132 files changed

Lines changed: 7216 additions & 6391 deletions

File tree

Some content is hidden

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

spec/data/large.yaml

Lines changed: 3932 additions & 6391 deletions
Large diffs are not rendered by default.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
AddCustomFieldSettingRequest:
3+
properties:
4+
custom_field:
5+
description: The custom field to associate with this container.
6+
example: '14916'
7+
type: string
8+
insert_after:
9+
description: A gid of a Custom Field Setting on this container, after which
10+
the new Custom Field Setting will be added. `insert_before` and `insert_after`
11+
parameters cannot both be specified.
12+
example: '1331'
13+
type: string
14+
insert_before:
15+
description: A gid of a Custom Field Setting on this container, before which
16+
the new Custom Field Setting will be added. `insert_before` and `insert_after`
17+
parameters cannot both be specified.
18+
example: '1331'
19+
type: string
20+
is_important:
21+
description: Whether this field should be considered important to this container
22+
(for instance, to display in the list view of items in the container).
23+
example: true
24+
type: boolean
25+
required:
26+
- custom_field
27+
type: object
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
AddFollowersRequest:
3+
properties:
4+
followers:
5+
description: An array of strings identifying users. These can either be the
6+
string "me", an email, or the gid of a user.
7+
example: 521621621373
8+
type: string
9+
required:
10+
- followers
11+
type: object
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
AddMembersRequest:
3+
properties:
4+
members:
5+
description: An array of strings identifying users. These can either be the
6+
string "me", an email, or the gid of a user.
7+
example: 521621621373
8+
type: string
9+
required:
10+
- members
11+
type: object
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
AsanaNamedResource:
3+
allOf:
4+
- "$ref": "#/components/schemas/AsanaResource"
5+
- properties:
6+
name:
7+
description: The name of the object.
8+
example: Bug Task
9+
type: string
10+
type: object

spec/data/large/AsanaResource.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
AsanaResource:
3+
description: A generic Asana Resource, containing a globally unique identifier.
4+
properties:
5+
gid:
6+
description: Globally unique identifier of the resource, as a string.
7+
example: '12345'
8+
readOnly: true
9+
type: string
10+
x-insert-after: false
11+
resource_type:
12+
description: The base type of this resource.
13+
example: task
14+
readOnly: true
15+
type: string
16+
x-insert-after: gid
17+
type: object
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
AttachmentBase:
3+
"$ref": "#/components/schemas/AttachmentCompact"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
AttachmentCompact:
3+
allOf:
4+
- "$ref": "#/components/schemas/AsanaResource"
5+
- description: An *attachment* object represents any file attached to a task in
6+
Asana, whether it’s an uploaded file or one associated via a third-party service
7+
such as Dropbox or Google Drive.
8+
properties:
9+
name:
10+
description: The name of the file.
11+
example: Screenshot.png
12+
readOnly: true
13+
type: string
14+
resource_subtype:
15+
description: |-
16+
The service hosting the attachment. Valid values are `asana`, `dropbox`, `gdrive`, `onedrive`, `box`, and `external`.
17+
`external` attachments are a beta feature currently limited to specific integrations.
18+
type: object
19+
x-docs-overrides:
20+
properties.resource_type.example: attachment
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
AttachmentRequest:
3+
properties:
4+
file:
5+
description: 'Required for file attachments.
6+
7+
'
8+
format: binary
9+
type: string
10+
name:
11+
description: 'The name of the external resource being attached. Required for
12+
attachments of type ''external''.
13+
14+
'
15+
type: string
16+
resource_subtype:
17+
description: 'The type of the attachment. Must be one of the given values. If
18+
not specified, a file attachment of type `asana_file_attachments` will be
19+
assumed.
20+
21+
'
22+
enum:
23+
- asana_file_attachments
24+
- external
25+
example: text
26+
type: string
27+
url:
28+
description: 'The URL of the external resource being attached. Required for
29+
attachments of type ''external''.
30+
31+
'
32+
type: string
33+
type: object
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
AttachmentResponse:
3+
allOf:
4+
- "$ref": "#/components/schemas/AttachmentBase"
5+
- properties:
6+
created_at:
7+
description: The time at which this resource was created.
8+
example: 2012-02-22 02:06:58.147000000 Z
9+
format: date-time
10+
readOnly: true
11+
type: string
12+
download_url:
13+
description: |-
14+
The URL containing the content of the attachment.
15+
*Note:* May be null if the attachment is hosted by [Box](https://www.box.com/). If present, this URL may only be valid for two minutes from the time of retrieval. You should avoid persisting this URL somewhere and just refresh it on demand to ensure you do not keep stale URLs.
16+
example: https://s3.amazonaws.com/assets/123/Screenshot.png
17+
format: uri
18+
nullable: true
19+
readOnly: true
20+
type: string
21+
host:
22+
description: The service hosting the attachment. Valid values are `asana`,
23+
`dropbox`, `gdrive` and `box`.
24+
example: dropbox
25+
readOnly: true
26+
type: string
27+
parent:
28+
allOf:
29+
- "$ref": "#/components/schemas/TaskCompact"
30+
- description: The task this attachment is attached to.
31+
readOnly: true
32+
type: object
33+
view_url:
34+
description: The URL where the attachment can be viewed, which may be friendlier
35+
to users in a browser than just directing them to a raw file. May be null
36+
if no view URL exists for the service.
37+
example: https://www.dropbox.com/s/123/Screenshot.png
38+
format: uri
39+
nullable: true
40+
readOnly: true
41+
type: string
42+
type: object

0 commit comments

Comments
 (0)