-
-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new option for further customization of collections
In order to support Collections that are quite different than the ones in the standard library, we add a new `collection` option for repeated fields. The collection can reference an `Adapter` type available at runtime that will forward calls for an underlying collection. This helps support types such as cats.data.NonEmptyList, NonEmptySet and NonEmptyMap. For example, those collections don't define `foreach`, and `++` where the rhs is an iterable. For `NonEmptySet` there is even no `size` method. See #1013 and scalapb/scalapb-validate#38
- Loading branch information
Showing
23 changed files
with
689 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.