[SERVER-49446] Implement validation error generation for jsonSchema object keywords Created: 10/Jul/20 Updated: 29/Oct/23 Resolved: 21/Oct/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mihai Andrei | Assignee: | Mihai Andrei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Sprint: | Query 2020-08-10, Query 2020-09-21, Query 2020-10-05, Query 2020-10-19, Query 2020-11-02 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
Implement validation error generation for the following jsonSchema operators:
Note that additionalProperties/dependencies behave differently depending on the type of the argument provided. |
| Comments |
| Comment by Githook User [ 21/Oct/20 ] |
|
Author: {'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}Message: |
| Comment by Githook User [ 20/Oct/20 ] |
|
Author: {'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}Message: |
| Comment by Githook User [ 13/Oct/20 ] |
|
Author: {'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}Message: |
| Comment by Githook User [ 05/Oct/20 ] |
|
Author: {'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}Message: |
| Comment by Mindaugas Malinauskas [ 16/Sep/20 ] |
|
Also, should add a few tests on array keywords mixed with 'required' keyword to complement tests developed under https://jira.mongodb.org/browse/SERVER-49445. |
| Comment by Mindaugas Malinauskas [ 31/Aug/20 ] |
|
Also add an invariant to the DocumentValidationFailureInfo constructor to check that it is initialized with a non-empty object. |