nobl9 / nobl9-go

Nobl9 SDK for Go!
https://www.nobl9.com/
Mozilla Public License 2.0
27 stars 1 forks source link

[BUG] Validation package does not handle empty map keys #362

Closed nieomylnieja closed 2 months ago

nieomylnieja commented 7 months ago

Describe the bug Property errors for map keys validation do 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.

nieomylnieja commented 2 months ago

Moving this to govy.