23andMe / Yamale

A schema and validator for YAML.
MIT License
680 stars 89 forks source link

Make any() accept anything #93

Closed salu133445 closed 4 years ago

salu133445 commented 4 years ago

Hi, this makes any() (without any arguments passed) to accept anything. This actually has the same effect by simply removing the key from the schema file. However, in my use case, I would like the users to see key: any() and knows that this key is optional rather than unavailable. Also, things get a bit different in strict mode, which would be helpful when one wants some key to present but does not care about its type. Thanks for reviewing!

mildebrandt commented 4 years ago

That make sense. Can you please update the README with the new functionality?

mildebrandt commented 4 years ago

And add some additional tests

salu133445 commented 4 years ago

Hi, I have updated the README and add some tests. Thanks for reviewing.

mildebrandt commented 4 years ago

Looks good, thanks for the PR and thanks for using Yamale!