Defunctionalize / schemagic

Define the shape of your data with simple python data structures. Use those data descriptions to validate your application.
GNU Lesser General Public License v2.1
43 stars 1 forks source link

add more core validators #20

Open Defunctionalize opened 8 years ago

Defunctionalize commented 8 years ago

There are a couple more validator types that should be added to the core functionality in order to be ready for 1.0

first one I can think of off the top of my head is:

non_strict_map(
    {"required_key_1": expected_value_validator,
     "required_key_2": expected_value_validator,},
    optional={"optional_key_1": expected_value_validator,
              "optional_key_2": expected_value_validator}
)