You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, to add Parse Server options, developers have to add validation for the variable type, as well as set the default. The error messages for if a variable doesn’t enforce a type is inconsistent. And, you cannot set environment variables to deep Parse Server options. Overall, it needs some TLC.
Feature / Enhancement Description
All this information is already typed in the definitions, so the type and default should be automatically set. The only custom validation should be for stricter rules, such as checking that a parameter is greater than 0, for example.
Example Use Case
Creating a new server option would require much less code if the type handling and defaults were handled internally.
I am not very fond of Parse Server's current options implementation. Our home-cooked implementation is already overly complex and has issues. Maybe we can look at that in the context of #7069 and replace it with a standardized options framework.
New Feature / Enhancement Checklist
Current Limitation
Currently, to add Parse Server options, developers have to add validation for the variable type, as well as set the default. The error messages for if a variable doesn’t enforce a type is inconsistent. And, you cannot set environment variables to deep Parse Server options. Overall, it needs some TLC.
Feature / Enhancement Description
All this information is already typed in the definitions, so the type and default should be automatically set. The only custom validation should be for stricter rules, such as checking that a parameter is greater than 0, for example.
Example Use Case
Creating a new server option would require much less code if the type handling and defaults were handled internally.
Alternatives / Workarounds
Related: #7151
3rd Party References
n/a
The text was updated successfully, but these errors were encountered: