Describe the bug
When duplicate detection is enabled, ObjectBuilder::try_insert or ObjectBuilder::try_with_field detect duplicate field names, but ObjectBuilder::new_list and ObjectBuilder::new_object do not.
To Reproduce
Just invoke either of those methods with a duplicate key -- no error.
Expected behavior
An error should be flagged.
Additional context
Found as part of
Describe the bug
When duplicate detection is enabled,
ObjectBuilder::try_insertorObjectBuilder::try_with_fielddetect duplicate field names, butObjectBuilder::new_listandObjectBuilder::new_objectdo not.To Reproduce
Just invoke either of those methods with a duplicate key -- no error.
Expected behavior
An error should be flagged.
Additional context
Found as part of