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
54 changes: 27 additions & 27 deletions openapi/components/schemas/_index.yaml
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
x-metadata:
$ref: x-metadata.yaml
Activity:
$ref: Activity.yaml
$ref: activity.yaml
Collections:
$ref: Collections.yaml
$ref: collections.yaml
Comments:
$ref: Comments.yaml
$ref: comments.yaml
Dashboards:
$ref: Dashboards.yaml
$ref: dashboards.yaml
Diff:
$ref: Diff.yaml
$ref: diff.yaml
Extensions:
$ref: Extensions.yaml
$ref: extensions.yaml
Fields:
$ref: Fields.yaml
$ref: fields.yaml
Files:
$ref: Files.yaml
$ref: files.yaml
Flows:
$ref: Flows.yaml
$ref: flows.yaml
Folders:
$ref: Folders.yaml
$ref: folders.yaml
Items:
$ref: Items.yaml
$ref: items.yaml
Notifications:
$ref: Notifications.yaml
$ref: notifications.yaml
Operations:
$ref: Operations.yaml
$ref: operations.yaml
Panels:
$ref: Panels.yaml
$ref: panels.yaml
Permissions:
$ref: Permissions.yaml
$ref: permissions.yaml
Policies:
$ref: Policies.yaml
$ref: policies.yaml
Presets:
$ref: Presets.yaml
$ref: presets.yaml
Query:
$ref: Query.yaml
$ref: query.yaml
Relations:
$ref: Relations.yaml
$ref: relations.yaml
Revisions:
$ref: Revisions.yaml
$ref: revisions.yaml
Roles:
$ref: Roles.yaml
$ref: roles.yaml
Schema:
$ref: Schema.yaml
$ref: schema.yaml
Settings:
$ref: Settings.yaml
$ref: settings.yaml
Shares:
$ref: Shares.yaml
$ref: shares.yaml
Translations:
$ref: Translations.yaml
$ref: translations.yaml
Users:
$ref: Users.yaml
$ref: users.yaml
Versions:
$ref: Versions.yaml
$ref: versions.yaml
6 changes: 3 additions & 3 deletions openapi/components/schemas/activity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ properties:
description: The user who performed this action. Many-to-one to users.
type: string
oneOf:
- $ref: Users.yaml
- $ref: users.yaml
nullable: true
timestamp:
description: When the action happened.
Expand All @@ -38,7 +38,7 @@ properties:
description: Collection identifier in which the item resides.
oneOf:
- type: string
- $ref: Collections.yaml
- $ref: collections.yaml
item:
description: Unique identifier for the item the action applied to. This is always a string, even for integer primary keys.
example: '328'
Expand All @@ -58,5 +58,5 @@ properties:
type: array
items:
oneOf:
- $ref: Revisions.yaml
- $ref: revisions.yaml
x-collection: directus_activity
2 changes: 1 addition & 1 deletion openapi/components/schemas/collections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ properties:
description: The name of the parent collection.
type: string
oneOf:
- $ref: Collections.yaml
- $ref: collections.yaml
collapse:
nullable: false
description: What is the default behavior of this collection or "folder" collection when it has nested collections. One of `open`, `closed`, `locked`.
Expand Down
4 changes: 2 additions & 2 deletions openapi/components/schemas/comments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ properties:
example: 12e62fd0-29c7-4fd3-b3d3-c7a39933e8af
type: string
oneOf:
- $ref: Users.yaml
- $ref: users.yaml
user_updated:
description: The user who last updated the comment. Many-to-one to users.
example: 12e62fd0-29c7-4fd3-b3d3-c7a39933e8af
type: string
oneOf:
- $ref: Users.yaml
- $ref: users.yaml
x-collection: directus_comments
4 changes: 2 additions & 2 deletions openapi/components/schemas/dashboards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ properties:
type: string
format: relation
oneOf:
- $ref: Users.yaml
- $ref: users.yaml
color:
description: Accent color for the dashboard.
example: #6644FF
Expand All @@ -39,5 +39,5 @@ properties:
example: 22640672-eef0-4ee9-ab04-591f3afb2883
type: string
oneOf:
- $ref: Panels.yaml
- $ref: panels.yaml
x-collection: directus_shares
2 changes: 1 addition & 1 deletion openapi/components/schemas/fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ properties:
nullable: true
type: integer
oneOf:
- $ref: Fields.yaml
- $ref: fields.yaml
# validation:
# nullable: true
validation_message:
Expand Down
6 changes: 3 additions & 3 deletions openapi/components/schemas/files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ properties:
example: null
type: string
oneOf:
- $ref: Folders.yaml
- $ref: folders.yaml
nullable: true
uploaded_by:
description: Who uploaded the file.
example: 63716273-0f29-4648-8a2a-2af2948f6f78
oneOf:
- type: string
- $ref: Users.yaml
- $ref: users.yaml
created_on:
description: When the file was created.
example: 2019-12-03T00:10:15+00:00
Expand All @@ -47,7 +47,7 @@ properties:
type: string
format: uuid
oneOf:
- $ref: Users.yaml
- $ref: users.yaml
nullable: true
modified_on:
nullable: false
Expand Down
6 changes: 3 additions & 3 deletions openapi/components/schemas/flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ properties:
oneOf:
- type: string
- format: uuid
- $ref: Operations.yaml
- $ref: operations.yaml
date_created:
description: Timestamp in ISO8601 when the flow was created.
type: string
Expand All @@ -61,13 +61,13 @@ properties:
example: 63716273-0f29-4648-8a2a-2af2948f6f78
oneOf:
- type: string
- $ref: Users.yaml
- $ref: users.yaml
operations:
nullable: true
type: array
items:
oneOf:
- type: string
format: uuid
- $ref: Operations.yaml
- $ref: operations.yaml
x-collection: directus_flows
2 changes: 1 addition & 1 deletion openapi/components/schemas/folders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ properties:
}
type: string
oneOf:
- $ref: Folders.yaml
- $ref: folders.yaml
nullable: true
x-collection: directus_folders
4 changes: 2 additions & 2 deletions openapi/components/schemas/notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ properties:
example: 3EE34828-B43C-4FB2-A721-5151579B08EA
oneOf:
- type: string
- $ref: Users.yaml
- $ref: users.yaml
sender:
description: User that sent the notification, if any.
example: 497a495e-5529-4e46-8feb-2f35e9b85601
oneOf:
- type: string
- $ref: Users.yaml
- $ref: users.yaml
subject:
description: Subject line of the message.
example: inbox
Expand Down
8 changes: 4 additions & 4 deletions openapi/components/schemas/operations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ properties:
example: 63716273-0f29-4648-8a2a-2af2948f6f78
oneOf:
- type: string
- $ref: Operations.yaml
- $ref: operations.yaml
reject:
description: The operation triggered when the current operation fails (or `otherwise` logic of a condition operation).
example: 63716273-0f29-4648-8a2a-2af2948f6f78
oneOf:
- type: string
- $ref: Operations.yaml
- $ref: operations.yaml
flow:
nullable: false
type: string
format: uuid
oneOf:
- $ref: Flows.yaml
- $ref: flows.yaml
date_created:
description: Timestamp in ISO8601 when the operation was created.
type: string
Expand All @@ -59,5 +59,5 @@ properties:
example: 63716273-0f29-4648-8a2a-2af2948f6f78
oneOf:
- type: string
- $ref: Users.yaml
- $ref: users.yaml
x-collection: directus_operations
4 changes: 2 additions & 2 deletions openapi/components/schemas/panels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ properties:
example: a79bd1b2-beb2-49fc-8a26-0b3eec0e269
oneOf:
- type: string
- $ref: Dashboards.yaml
- $ref: dashboards.yaml
name:
description: Name of the panel.
example: 30-day sales
Expand Down Expand Up @@ -66,5 +66,5 @@ properties:
example: fd066644-c8e5-499d-947b-fe6c6e1a1473
oneOf:
- type: string
- $ref: Users.yaml
- $ref: users.yaml
x-collection: directus_panels
2 changes: 1 addition & 1 deletion openapi/components/schemas/permissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ properties:
format: uuid
type: string
oneOf:
- $ref: Policies.yaml
- $ref: policies.yaml
x-collection: directus_permissions
6 changes: 3 additions & 3 deletions openapi/components/schemas/policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ properties:
oneOf:
- type: array
- format: many-to-many
- $ref: Users.yaml
- $ref: users.yaml
roles:
description: The roles this policy is assigned to. It expects and returns data from the directus_access collection. Many-to-many to roles via access.
example: ["8b4474c0-288d-4bb8-b62e-8330646bb6aa"]
oneOf:
- type: array
- format: many-to-many
- $ref: Roles.yaml
- $ref: roles.yaml
permissions:
description: The permissions assigned to this policy. One-to-many to permissions.
example: ["5c74c86f-cab0-4b14-a3c4-cd4f2363e826"]
oneOf:
- type: array
- format: one-to-many
- $ref: Permissions.yaml
- $ref: permissions.yaml
x-collection: directus_policies
6 changes: 3 additions & 3 deletions openapi/components/schemas/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ properties:
nullable: true
type: string
oneOf:
- $ref: Users.yaml
- $ref: users.yaml
role:
description: The unique identifier of a role in the platform. If `user` is null, this will be used to apply the collection preset or bookmark for all users in the role.
example: 50419801-0f30-8644-2b3c-9bc2d980d0a0
nullable: true
type: string
oneOf:
- $ref: Roles.yaml
- $ref: roles.yaml
collection:
description: What collection this collection preset is used for.
example: articles
oneOf:
- type: string
- $ref: Collections.yaml
- $ref: collections.yaml
search:
description: Search query.
type: string
Expand Down
6 changes: 3 additions & 3 deletions openapi/components/schemas/revisions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ properties:
example: 2
type: integer
oneOf:
- $ref: Activity.yaml
- $ref: activity.yaml
collection:
description: Collection of the updated item.
example: articles
type: string
oneOf:
- $ref: Collections.yaml
- $ref: collections.yaml
item:
description: Primary key of updated item.
example: '168'
Expand Down Expand Up @@ -45,5 +45,5 @@ properties:
example: draft
type: string
oneOf:
- $ref: Versions.yaml
- $ref: versions.yaml
x-collection: directus_revisions
8 changes: 4 additions & 4 deletions openapi/components/schemas/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,29 @@ properties:
type: string
format: uuid
oneOf:
- $ref: Roles.yaml
- $ref: roles.yaml
children:
nullable: true
description: Nested child roles that inherit this roles permissions. One-to-many to roles. One-to-many to roles.
type: array
format: uuid
items:
oneOf:
- $ref: Roles.yaml
- $ref: roles.yaml
policies:
nullable: true
description: The policies in this role. Many-to-many to roles.
type: array
format: uuid
items:
oneOf:
- $ref: Roles.yaml
- $ref: roles.yaml
users:
nullable: true
description: The users in this role. One-to-many to users.
type: array
format: uuid
items:
oneOf:
- $ref: Users.yaml
- $ref: users.yaml
x-collection: directus_roles
Loading