-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Yaml] Yaml::dump() encodes empty array as empty object #15781
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
Comments
Have a look at the signature and the last argument. |
@fabpot I did, and I followed it to Also my assertion I am starting to doubt myself a little bit here, but right now I think this should be reopened. |
@kleijnweb see also #9870 |
see #17728 for the implementation |
This PR was merged into the 3.1-dev branch. Discussion ---------- [Yaml] add option to dump objects as maps | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #9870, #12860, #15781, #15937, #16266 | License | MIT | Doc PR | TODO Commits ------- 3941d2e [Yaml] add option to dump objects as maps
it seems to me that "empty array" returns "empty object"; how can I get "test: [ ]" as result (empty array)? |
@xabbuh , thanks for the reply. I will use |
See johnknl/swagger-bundle#18
The text was updated successfully, but these errors were encountered: