-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.12.1 (latest Playground)
Current Behavior
With AJV8, if a property key has a dot in it (e.g. Foo.Bar), there's a validation error collision with a Bar value inside Foo object.
Expected Behavior
There should not be collision. The behaviour should be the same as in AJV6 (deprecated)
Steps To Reproduce
Example 1
- Open Playground example
- Make sure AJV8 validator is selected
- Press submit
Expected:
- Validation error "must NOT have fever than 5 characters" for value
Foo - No validation error for value
Bar
Actual:
- Validation error "must NOT have fever than 5 characters" for value
Foo - Validation error "must NOT have fever than 5 characters" for value
Bar
Please note that if you select AJV6 (deprecated) validator, the behaviour is as expected
Example 2
(This example is the same as above but other way around)
- Open Playground example
- Make sure AJV8 validator is selected
- Press submit
Expected:
- No validation error for value
FooBar - Validation error "must NOT have fever than 2 characters" for value
B
Actual:
- Validation error "must NOT have fever than 2 characters" for value
FooBar - Validation error "must NOT have fever than 2 characters" for value
B
Please note: This issue happens ALSO with AJV6
Environment
- I'm using Playground, which afaik is using version 5.12.1.
- MacOS
- Google Chrome 116.0.5845.110 (Official Build) (arm64)Anything else?
No response