[BUG] Slice encoding drops empty values rather than encoding them as nil
or default
#215
Open
1 task done
Labels
nil
or default
#215
Is there an existing issue for this?
Current Behavior
When called with
id=1, id=, id=15
The behavior is rather unfortunate when decoding values that matter when equal to
""
.For example, when two slices are related to each other.
Now
RowID[0]
andRowName[0]
build a pair. But since gorilla/schema drops empty strings for some reason rather than settings it to Go's default for that value or using the default value defined by tags, the relationship breaks.Expected Behavior
Steps To Reproduce
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: