Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flags for incorrect array keys #2

Closed
tburry opened this issue Mar 10, 2017 · 0 comments
Closed

Add flags for incorrect array keys #2

tburry opened this issue Mar 10, 2017 · 0 comments

Comments

@tburry
Copy link
Contributor

tburry commented Mar 10, 2017

Right now, arrays are valid if they contain the zero key. If it is out of order or there are missing/invalid other keys then the schema will clean the output, but that may not be the desired result. Similar to the extra property flags we should add the following flags to the Schema class:

/**
 * Trigger a notice when an array has invalid keys.
 */
const VALIDATE_ARRAY_KEY_NOTICE = 0x4;

/**
 * Throw a ValidationException an array has invalid keys.
 */
const VALIDATE_ARRAY_KEY_EXCEPTION = 0x8;
@tburry tburry closed this as completed Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant