Skip to content

Conversation

@zarusz
Copy link
Owner

@zarusz zarusz commented Jan 5, 2026

By default, the serializer uses the useActualTypeOnSerialize: true parameter, which ensures that the actual runtime type of the message is used during serialization. This is important for polymorphic message types where you might publish a derived type but declare the producer with a base type.

If this is not the default STJ does only include the base type properties (unlike Newtonsoft.Json).

…efault during serialization

Signed-off-by: Tomasz Maruszak <maruszaktomasz@gmail.com>
@zarusz zarusz force-pushed the feature/stj_pass_actual_type branch from 2aab995 to 50ffdf0 Compare January 5, 2026 14:00
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2026

@zarusz zarusz merged commit cf3b084 into master Jan 5, 2026
6 of 8 checks passed
@zarusz zarusz deleted the feature/stj_pass_actual_type branch January 5, 2026 14:32
@zarusz zarusz added this to the 3.4.0 milestone Jan 6, 2026
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.

2 participants