-
Notifications
You must be signed in to change notification settings - Fork 356
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
Serialize all responses used in the NEST Server #2635
Conversation
Pull request automatically marked stale! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Could you please merge with master so that the new CI pipeline can run?
5a92324
to
6de167b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this PR look good to me.
Just one thing that always bothered me: Why is the function called serializable()
? From a function with that name I would expect that it returns a Boolean flag indicating if the argument can be serialized or not. But this function actually serializes its argument and consequently should rather be called serialize()
? Shouldn't it?
Or am I missing something essential here?
Is |
Much better in my opinion! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful! ❤️
It shows a usecase that
NodeCollection
or other NEST objects are stored inuserdict
.Then the user wants to get
userdict
via API-requests.Example:
It produces server error because the data in
userdict
cannot be transformed for JSON when they areNodeCollection
or other NEST objects.