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
Assuming they are available in the runtime, should Mantle use them to inform the validation of models? The checks these attributes add are at compile time, so have no effect on Mantle's KVC powered features.
The text was updated successfully, but these errors were encountered:
I'm pretty sure these are not available at runtime. Even if they were, Mantle doesn't perform much automatic validation—most of that is up to your model.
That is true, it is up to you to add Key-Value Validation methods to your model. This doesn't exactly fall under the JSON checks.
Maybe this could be changed to an enhancement for validation helper methods in Mantle. Which if possible, would include checking nullability.
Currently, writing the Key-Value Validation methods is a drag.
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.
Should Mantle support validation based on the new property attributes
nonnull
andnullable
Read about them here
Assuming they are available in the runtime, should Mantle use them to inform the validation of models? The checks these attributes add are at compile time, so have no effect on Mantle's KVC powered features.
The text was updated successfully, but these errors were encountered: