[SERVER-29777] IDL should disallow optional and default for the same field Created: 21/Jun/17  Updated: 30/Oct/23  Resolved: 23/Jun/17

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: None
Fix Version/s: 3.5.10

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-07-10
Participants:

 Description   

It does not make sense for a field to have a default value and be marked as optional. This needs to be an error in IDL and tests added. This came up in a recent code review.



 Comments   
Comment by Githook User [ 23/Jun/17 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-29777 IDL should disallow optional and default for the same field
Branch: master
https://github.com/mongodb/mongo/commit/a7f353bd83f20fcc8370a07f12bb557aac75e951

Generated at Thu Feb 08 04:21:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.