contentlayerdev / contentlayerdev/contentlayer

Consider renaming `required` to `nullable`

Open
#160 1 comment 0 reactions 0 assignees View on GitHub
meta: never-stale
Dominant language
TypeScript
Stars
3.5k
Forks
192
PR merge metrics
No merged PRs in 30d

Description

Special case: Field `required: true` with `default: "some value"` results in the actual **input data** not actually being required and therefore making the concept of a "required field" kind of "weird".

Related:
- #120

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.