-
Notifications
You must be signed in to change notification settings - Fork 194
Leveraging JSON Schema #163
Copy link
Copy link
Open
Labels
featureNew feature or requestNew feature or request
Description
The package relies today on its own schema definition in defineDocumentType for local content definition.
What I would like to ask if whether JSON Schema can be leveraged instead. The side effect is then that the schema definition is separate from the computed fields which is perhaps a good thing.
import MyJsonSchema from 'myschema/test';
const Doc = defineDocumentType(() => ({
name: 'Doc',
filePathPattern: '**/*.md',
schema: MyJsonSchema,
computedFields: {
....
}
}))The missing piece is that I don't know whether this impacts the architecture.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request