nobl9 / govy

Go validation library with functional API built on top of generics, statically typed and batteries included :fire:
https://pkg.go.dev/github.com/nobl9/govy
Mozilla Public License 2.0
27 stars 0 forks source link

[BUG] Empty map keys are not handled correctly #12

Open nieomylnieja opened 2 months ago

nieomylnieja commented 2 months ago

Describe the bug Property errors for map keys validation does not handle empty strings. Instead of a path like metadata.labels."" we get metadata.labels.

To Reproduce Set map key to an empty string, run validation. The result is a property path without the empty string key element.

Expected behavior The result should be a valid YAMLPath pointing at the empty key.

System details (please complete the following information)

srikary12 commented 2 weeks ago

I would like to work on this