Open
Description
For certain use cases it may be useful to support schema validation (e.g. based on JSON schemas or similar) for front matter. This is useful both for checking the format as well as offering suggestions, e.g. with auto complete for “enum” style values.
Conceptually, this may look as follows:
---
$schema: <URL or page reference>
attribute1: value
attribute2: value
---
If `$schema` is specified, SB would use it to validate the remaining attributes, highlight validation errors etc.
This should be implementable as a plug, except for marking validation errors inline, this would require some extra syscalls and investigation.
cc @saturninoabril
Metadata
Metadata
Assignees
Type
Projects
Status
Done