Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Added min and max in slice and map size #143

Closed
wants to merge 1 commit into from
Closed

Added min and max in slice and map size #143

wants to merge 1 commit into from

Conversation

nascarsayan
Copy link

I am facing a use case where I need to fill a struct with some data where all the fields are populated, but the serialized data is as small as possible. I can set the min and max string size to 1, min and max value of int to 1, but cannot set the min and max length of slices and maps to 1.

This PR makes the necessary changes to allow users to set the minimum size of slices and maps too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants