Nothing Special   »   [go: up one dir, main page]

Skip to content
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

Throw an error when prop is required and not filled #9

Open
literat opened this issue Apr 22, 2024 · 0 comments
Open

Throw an error when prop is required and not filled #9

literat opened this issue Apr 22, 2024 · 0 comments

Comments

@literat
Copy link
Contributor
literat commented Apr 22, 2024

According to the Jobs poll, everyone wants a 500 error to occur when a component does not have a mandatory prop filled in. However, providence suggests that a Spirit Twig bundle level configuration option would be useful:

set up separately for each environment: development/production
behavior options: 500 / log (there should be no option to do nothing)
Sourc e: https://www.notion.so/almacareer/Twig-Povinn-props-je-mo-n-nevyplnit-aa2c55517687461dbfc9079248b15464?pvs=4

Implementation notes
Prepare a special required filter that will test the transformation and if it is unfilled it will bang, in case of production it will just log and let it pass
must be configurable

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

No branches or pull requests

1 participant