Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nieomylnieja opened this issue Sep 2, 2024 · 0 comments
Open

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

nieomylnieja opened this issue Sep 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nieomylnieja
Copy link
Collaborator

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)

  • govy version v0.1.1
@nieomylnieja nieomylnieja added the bug Something isn't working label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant