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

__type being applied to nested objects even when includeTypeId is set false #199

Open
AhmedLSayed9 opened this issue May 29, 2024 · 1 comment

Comments

@AhmedLSayed9
Copy link

Is there a way to avoid adding __type for the nested objects?

i.e I'm doing the following:

SomeMapper.ensureInitialized()
        .encodeJson(this, EncodingOptions(includeTypeId: false));

SomeMapper has nested objects which themselves should add the __type property in normal cases.
However, I want to prevent SomeMapper and all nested objects from adding __type

@schultek
Copy link
Owner

Yes that should actually disable the __type property for all nested types. Could be a bug, I will look into it.

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

No branches or pull requests

2 participants