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

Removes internal properties from the handlers responses #57

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Apr 7, 2021

GitHub

Changes

The entity(-ies) JSON returned from the generated handlers (.toHandlers) now does not have any internal properties (__primaryKey, __type, etc.).

Motivation

When using the handlers, developers will work and assert the returned response data in a strict way. Internal properties must not leak to the public response.

@kettanaito kettanaito merged commit f3b4560 into master Apr 7, 2021
@kettanaito kettanaito deleted the 41-clean-handlers-response branch April 7, 2021 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Omit internal properties when returning a public record
1 participant