[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:
Depends
depends on SERVER-50008 Implement basic jsonSchema validation... Closed
is depended on by SERVER-49442 Implement document validation error g... Closed
Related
related to SERVER-50859 Type mismatches in jsonSchema should ... Closed
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:

  • required
  • additionalProperties
  • dependencies
  • maxProperties
  • minProperties
  • patternProperties

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: SERVER-49446 Implement validation error generation for required keyword
Branch: master
https://github.com/mongodb/mongo/commit/69c03caa427e1d31b81e7bc98a56d9eb7e6ab06b

Comment by Githook User [ 20/Oct/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-49446 Implement validation error generation for additionalProperties and patternProperties keywords
Branch: master
https://github.com/mongodb/mongo/commit/333e4e86d03e3bbf1d89654d40dfffc9525eb112

Comment by Githook User [ 13/Oct/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-49446 Implement validation error generation for dependencies keyword
Branch: master
https://github.com/mongodb/mongo/commit/b9d0107b6484ea0523cbd0a585a2c571493e719c

Comment by Githook User [ 05/Oct/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-49446 Implement validation error generation for min/maxProperties keywords
Branch: master
https://github.com/mongodb/mongo/commit/fcf0470c75a963f6b85676c0585c415f65e5d730

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.

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