Skip to content

EBP-2375: .NET serdes provider json schema references snippets#66

Draft
TrentDaniel wants to merge 1 commit into
SolaceSamples:masterfrom
TrentDaniel:EBP-2375
Draft

EBP-2375: .NET serdes provider json schema references snippets#66
TrentDaniel wants to merge 1 commit into
SolaceSamples:masterfrom
TrentDaniel:EBP-2375

Conversation

@TrentDaniel

Copy link
Copy Markdown
Contributor

Updated snippets file to include examples of how to serialize and deserialize withn references, explicit schema versions, and latest schema version.

…ze and deserialize withn references, explicit schema versions, and latest schema version
@TrentDaniel TrentDaniel marked this pull request as draft June 17, 2026 18:56
/// <list type="bullet">
/// <item>SerializeWithUserJsonSchema - Basic serialization with User POCO</item>
/// <item>SerializeWithJsonNode - Serialization with JsonNode object</item>
/// <item>SerializeWithFindLatest - Serialization with find-latest-artifact resolver strategy</item>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling the find-latest-artifact boolean property a resolver strategy is misleading and can make users think it is an ArtifactResolverStrategy. We should fix this to be "find-latest schema resolver option"

config[JsonSchemaPropertyKeys.FindLatestArtifact] = true;

// Create UserAccount object with nested User
var userAccount = new UserAccount

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both the explicit version and find latest snippets should be using the User schema, not the UserAccount schema with references so that way we can narrow down the scope of what this snippet is trying to show. The java samples use the User schema as well.

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