lmc-eu / spirit-web-twig-bundle

[READ-ONLY] Spirit Design System Web Twig components
0 stars 0 forks source link

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

Open literat opened 2 months ago

literat commented 2 months ago

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