Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add support for non-strict validations, and nullable arrays/hashes. #529

merged 1 commit into from Sep 29, 2011


None yet
2 participants

dprince commented Sep 28, 2011

This branch gives me the ability to do this in my tests:

tests('#get_flavor_details(1)').formats(@flavor_format, false) do

** notice the extra 'false' option on the formats helper call.

The issue I'm having with real tests is that the OpenStack API allows extensions. This seems like a reasonable addition to our formats validation function to validate that core things exist while ignoring the extra data.

geemus added a commit that referenced this pull request Sep 29, 2011

Merge pull request #529 from dprince/non_strict_format_validation
Add support for non-strict validations, and nullable arrays/hashes.

@geemus geemus merged commit 94a96ef into fog:master Sep 29, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment