-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Tag nodes are now not allowed in mapping nodes, except if the mapping node has one element #525
Comments
Thank you for your reports. Since it's the correct behavior for both to result in an error, I'll fix the behavior when there is only one element. |
Thanks for your extremely fast response! If I may ask a question. I've seen examples of global tags applied to mapping nodes, but couldn't find any of local tags on mapping nodes in the yaml spec. Does this being correct behaviour originate in the library or in the spec or somewhere else? |
For example, the following tag is fine, but if an invalid tag is specified, it should result in an error.
|
The behaviour now is that no application-specific tags ( |
But I can confirm that the behaviour is now consistent. |
I've supported application-specific local tag with this PR ( #527 ). |
Describe the bug
Before the recent updates, mapping nodes could have tag nodes. Now this gives an error. Unless the mapping node has one element.
To Reproduce
Examples of it failing and not failing:
https://go.dev/play/p/ZiES84oWFCw
Expected behavior
Consistent behaviour one way or the other, regardless of number of elements.
Screenshots
If applicable, add screenshots to help explain your problem.
Version Variables
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: