[SERVER-49442] Implement document validation error generation tests which use customer validators Created: 10/Jul/20  Updated: 29/Oct/23  Resolved: 06/Jan/21

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: Mindaugas Malinauskas
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-49446 Implement validation error generation... Closed
Problem/Incident
causes SERVER-53608 src/third_party/schemastore.org shoul... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2020-10-05, Query 2020-10-19, Query 2020-11-02
Participants:

 Description   

Outside of the unit tests which verify that individual operators generate errors in the expected format, it would be useful to have coverage of generated errors using real world validators. Some example validators include the following from various JIRA tickets (one, two, and three) as well as the sample schemas presented in the MongoDB docs.

Additionally, a number of sample schemas can be found on schemastore.org.



 Comments   
Comment by Mindaugas Malinauskas [ 06/Jan/21 ]

Restored epic link.

Comment by Mindaugas Malinauskas [ 06/Jan/21 ]

Re-closing the ticket while extracting Ryan's concern reported in the comments to a separate ticketĀ SERVER-53608.
CC: ryan.egesdahl, craig.homa, david.storch.

Comment by Githook User [ 27/Oct/20 ]

Author:

{'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}

Message: SERVER-49442 Implement document validation error generation tests which use customer validators
Branch: master
https://github.com/mongodb/mongo/commit/4c5637e94e8fbdb154d0fee2cc54546c5c1a5e83

Comment by Asya Kamsky [ 10/Jul/20 ]

https://stackoverflow.com/questions/54485749/correct-syntax-for-mongodb-jsonschema-validation has an interesting schema with two errors, one more subtle than the other, but both being hard to find - there's sample document to insert there as well.

Generated at Thu Feb 08 05:19:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.