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
I've recently started using Skooma and love the clean syntax but I miss the option to prevent additional fields that you can find in other data validation libraries (e.g. json-schema). I've solved this by adding the extra step of asserting that Map.keys(data) == Map.keys(schema) but thought maybe this could be added as an option, e.g.
I've recently started using Skooma and love the clean syntax but I miss the option to prevent additional fields that you can find in other data validation libraries (e.g. json-schema). I've solved this by adding the extra step of asserting that
Map.keys(data) == Map.keys(schema)
but thought maybe this could be added as an option, e.g.Skooma.valid? data, schema, additional_fields: false
Essentially adding
Skooma.valid?/3
with this and potentially other options as the third argument.If you like, I can also submit a PR with this feature.
The text was updated successfully, but these errors were encountered: