Skip to content

Consider renaming field option default to fallback #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
schickling opened this issue Feb 9, 2022 · 1 comment
Open

Consider renaming field option default to fallback #120

schickling opened this issue Feb 9, 2022 · 1 comment

Comments

@schickling
Copy link
Collaborator

schickling commented Feb 9, 2022

I'm currently considering renaming the field option default to fallback within the defineDocumentType or defineNestedType definitions in contentlayer/source-files.

Reasoning:
The term default value is typically used when "creating" some kind of record - however, Contentlayer never creates any kind of records/documents but just transforms then. Therefore I'm arguing the term fallback is more appropriate when considering the absence of a value.

@stale
Copy link

stale bot commented Apr 10, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant