-
-
Notifications
You must be signed in to change notification settings - Fork 7
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: toYaml should omit empty fields similar to toJson #80
Comments
What makes the empty fields go away is the following pipeline: |
Hello, good catch, Thanks for your report |
Thanks for creating a test cases. Looking again at it, I can't reproduce it in a minimal example (tried a few and it works as expected). |
Ok, thanks for your answer, I put it as
state/needs information 🚧
|
You have a proposal, explain it!
Right now toYaml represents the whole object. It would be great if there were an option to allow it to ignore empty fields.
Describe the solution you'd like
Have new toYamlWithParams function maybe with #79 that allows setting omitting empty fields as well as setting indentation.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: