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

Fix empty arrayobject to array #60

Merged
merged 1 commit into from
Nov 24, 2022
Merged

Fix empty arrayobject to array #60

merged 1 commit into from
Nov 24, 2022

Conversation

jorisvaesen
Copy link
Contributor

When converting a DTO with a property which is an empty ArrayObject, it won't be converted to an array but stays as ArrayObject. When encoded to json, this result in {} as property value, rather than [] as you would expect.

@dereuromark
Copy link
Owner

dereuromark commented Nov 24, 2022

Can we add a test for this?

Oh sry, you did. Thanks a lot!

@dereuromark dereuromark added the bug Something isn't working label Nov 24, 2022
@dereuromark dereuromark merged commit 917f554 into dereuromark:master Nov 24, 2022
@jorisvaesen jorisvaesen deleted the empty-arrayobject-fix branch November 25, 2022 10:12
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

Successfully merging this pull request may close these issues.

2 participants