Schema field definitions
Schema files follow the JSON schema specification with additional adapter-specific fields. Any construct that is valid in JSON schema is also valid in an adapter schema file.
General fields
Example
Security fields
Example
Required fields
You can mark fields as required using standard JSON schema techniques. When a required field is missing from the request, the adapter returns a validation error without making a call to the external system — avoiding unnecessary failures and saving time.
You can require a field unconditionally using a top-level required array, or conditionally using if/then logic based on the action.
Conditionally required field
This example requires origin only when the action is createAlert.
Encode a field value
Setting encode to true on a field causes the adapter to base64-encode that field’s value before sending it to the external system, and decode it when receiving the response.
If you want to encode on the request but not decode on the response, use separate request and response schemas and only set encode: true in the request schema.
Before and after
Without encoding:
With encode: true: