-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: BSON
Use Case
As a... BSON user
I want... numeric constructors to throw on malformed input
So that... the value I input is the value that is stored
User Impact
- High
Acceptance Criteria
Implementation Requirements
- When a string is inputted into the Int32 constructor, return Int32.fromString(value)
- When a string is inputted into the Double constructor, return Double.fromString(value)
- Move Long.fromStringStrict functionality to Long.fromString
Testing Requirements
- Update constructor tests to reflect error cases
Documentation Requirements
- Update API for each constructor to reflect changes