Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(schema): validate block children for supported object types
Block members can not be given a type that is not a object-like type. A type like 'string' for instance doesn't make sense inside a block child, as they always have to be wrapped in a object. I have identified the following supported core types: ['file', 'image', 'object', 'reference'] It is still possible to use shorthands for hoisted object-like types. If 'author' is defined as a object elsewhere, {type: 'author'} will still be allowed. Everything else in the block types 'of' property will throw a schema validation error with a listing of supported types.
- Loading branch information
1 parent
4e02847
commit 9c8bb83
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters