Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6100

Use .fromString helpers in Double and Int32 Constructors and move Long.fromStringStrict functionality to Long.fromString

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            aditi.khare@mongodb.com Aditi Khare
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: