23andMe / Yamale

A schema and validator for YAML.
MIT License
670 stars 88 forks source link

Add LengthMin and LengthMax constraint to Map #160

Closed jesse-r-s-hines closed 3 years ago

jesse-r-s-hines commented 3 years ago

Add the ability to validate the size of a map with min and max like Yamale already can with lists and strings. This can be particularly useful for validating a non-empty map.

mildebrandt commented 3 years ago

This looks good, thanks for the PR. If you can implement that extra test, I'll merge it in. Thanks!

mildebrandt commented 3 years ago

Well, it seems that travis-ci.org is closed for business as of today. Guess I should have looked at this yesterday. :)

I never got a notification. It'll take a bit to get up and running with another solution....please be patient, it may be a while.

jesse-r-s-hines commented 3 years ago

Alrighty, thanks!

mildebrandt commented 3 years ago

We got our brand new github actions working, and your addition has made it into version 3.0.7. Thanks for your contribution!