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
{{ message }}
Repository navigation
Log on invalid cloud validator configuration #7153
If you mistype a configuration in the cloud validator, it can lead to cloud functions not functioning as expected, which could lead to further problems.
And example would be typing requiredUser: true instead of requireUser: true. As far as the developer is concerned, the cloud function is restricted to users only, but the setting has no effect as it's mistyped.
Feature / Enhancement Description
A log if an unsupported validation configuration is entered, so that developers can be aware that the validator won't function as they expected.
E.g: "requiredUser" is not a supported cloud validator parameter. See this link for a full list of cloud validator parameters.
I think this would also be an interesting feature for the Parse Server config in the future. I suggest to write this PR in a generic way (as a distinct class) so that the logic can be reused to validate Parse Server config (or any other config) in a future PR.
Activity
mtrezza commentedon Jan 31, 2021
Sounds good!
I think this would also be an interesting feature for the Parse Server config in the future. I suggest to write this PR in a generic way (as a distinct class) so that the logic can be reused to validate Parse Server config (or any other config) in a future PR.
dplewis commentedon Mar 15, 2021
Closing via #7154