[GODRIVER-1893] Add an function to validate objectID format in Go Driver Created: 22/Feb/21 Updated: 28/Oct/23 Resolved: 08/Mar/21 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Kamiya Kenichi | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Documentation Changes: | Needed | ||||
| Documentation Changes Summary: | Add section to this method |
||||
| Description |
|
bson-ruby has validation method for ObjectID format as `BSON::ObjectId.legal?(string)` ref: https://github.com/mongodb/bson-ruby/blob/13c42e1ca47f47abdb15485ef5615a9189549a97/lib/bson/object_id.rb#L307-L308 I'd like to use similar feature in golang. |
| Comments |
| Comment by Githook User [ 02/Mar/21 ] |
|
Author: {'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}Message: |
| Comment by Githook User [ 02/Mar/21 ] |
|
Author: {'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}Message: |
| Comment by Githook User [ 02/Mar/21 ] |
|
Author: {'name': 'Kenichi Kamiya', 'email': 'kachick1@gmail.com', 'username': 'kachick'}Message: |
| Comment by Githook User [ 02/Mar/21 ] |
|
Author: {'name': 'Kenichi Kamiya', 'email': 'kachick1@gmail.com', 'username': 'kachick'}Message: |
| Comment by Kevin Albertson [ 22/Feb/21 ] |
| Comment by Kevin Albertson [ 22/Feb/21 ] |
|
Hi kachick1@gmail.com, Thank you for the feature request, and for the pull request! Someone on the team will review this soon. |