-
Notifications
You must be signed in to change notification settings - Fork 217
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 new validation rule: VALUE_OBJECT_CANNOT_CONTAIN_UNDEFINED #73
Comments
Here is the new branch: The exception name is Three new validation specs added:
with the following operation values: { foo: undefined }
{ foos: [undefined] }
{ foo: { bars: [undefined] }} } |
@tomalec can you review? |
Check itself LGTM, but we need that change to be made in |
Updated |
U should use |
@tomalec thanks, tested. |
cool, can you merge it to the master, and close the issue? |
Done. Released |
(Continued from Palindrom/Palindrom#21)
PuppetJs in debug mode (currently ON by default) validates outgoing patches:
in which case the error should be reported. I am glad that we both agree :)
It should not be mixed. The current check for
undefined
value (OPERATION_VALUE_REQUIRED
) should be kept. A new check forundefined
property of the value (if the value is an object) should be added after it (VALUE_OBJECT_CANNOT_CONTAIN_UNDEFINED
).@miyconst could you prepare a solution for this on a separate branch in https://github.com/Starcounter-Jack/JSON-Patch? Publish code on a separate branch for review. The changes should include test and update to README.md
The text was updated successfully, but these errors were encountered: