Skip to content

Commit

Permalink
feat: add resource link support and validation (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
veu authored Oct 7, 2022
1 parent 4b98135 commit e5a5ea1
Show file tree
Hide file tree
Showing 18 changed files with 834 additions and 101 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ Creates a field with provided `id`.
- `RichText`
- `Array` (requires `items`)
- `Link` (requires `linkType`)
- `ResourceLink` (requires `allowedResources`)
- **`items : Object`** _(required for type 'Array')_ – Defines the items of an Array field.
Example:

Expand All @@ -552,6 +553,7 @@ Creates a field with provided `id`.

- **`linkType : string`** _(required for type 'Link')_ – Type of the referenced entry.
Can take the same values as the ones listed for `type` above.
- **`allowedResources`** _(required for type 'ResourceLink')_ - Defines which resources can be linked through the field.
- **`required : boolean`** – Sets the field as required.
- **`validations : Array`** – Validations for the field.
Example:
Expand Down
Loading

0 comments on commit e5a5ea1

Please sign in to comment.