Skip to content

Front matter schema validation #104

Open
@zefhemel

Description

@zefhemel

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

Labels

coreRequires extension of SB’s coreenhancementNew feature or requestplugCan be implemented as a plug

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions