Skip to content
Open
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
10 changes: 5 additions & 5 deletions openapi/v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11241,8 +11241,8 @@ components:
type: string
description: |
JavaScript function code for the validation hook.
Receives `(operation, payload, user)` and can throw to reject the operation.
example: "function handler(operation, payload, user) {\n}"
Receives `(operation, payload, user, asset)` and can throw to reject the operation.
example: "function handler(operation, payload, user, asset) {\n}"
customMetadataFields:
type: array
description: |
Expand Down Expand Up @@ -11304,8 +11304,8 @@ components:
type: string
description: |
JavaScript function code for the validation hook. Required when `validateFunctionEnabled` is `true`.
The function signature is `function handler(operation, payload, user)`.
example: "function handler(operation, payload, user) {\n}"
The function signature is `function handler(operation, payload, user, asset)`.
example: "function handler(operation, payload, user, asset) {\n}"
customMetadataFields:
type: array
uniqueItems: true
Expand Down Expand Up @@ -11358,7 +11358,7 @@ components:
description: |
JavaScript function code for the validation hook (as submitted).
Present only when `validateFunctionEnabled` is `true`.
example: "function handler(operation, payload, user) {\n}"
example: "function handler(operation, payload, user, asset) {\n}"
customMetadataFields:
type: array
items:
Expand Down