Skip to content

Conversation

@Burgyn
Copy link
Contributor

@Burgyn Burgyn commented Oct 25, 2024

This PR addresses two documentation inaccuracies:

Updated usage of the outdated method UseSchemaTransformer, which has been replaced by AddSchemaTransformer in recent versions of .NET.

Corrected type checking syntax from if (c.Type == typeof(Product)) to if (c.JsonTypeInfo.Type == typeof(Product)), aligning with the current API structure for accessing type information.

This PR addresses two documentation inaccuracies:

Updated usage of the outdated method `UseSchemaTransformer`, which has been replaced by `AddSchemaTransformer` in recent versions of .NET.

Corrected type checking syntax from `if (c.Type == typeof(Product))` to `if (c.JsonTypeInfo.Type == typeof(Product))`, aligning with the current API structure for accessing type information.
@guardrex
Copy link
Collaborator

guardrex commented Oct 25, 2024

Nevermind! 😆 ... My comment was based on merely a search result. I see the file that I referenced is explaining the updated API.

I've pinged Safia to review. Thanks for sending this in.

@guardrex guardrex requested a review from captainsafia October 25, 2024 13:47
@guardrex guardrex merged commit 67960a2 into dotnet:main Oct 25, 2024
2 checks passed
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.

3 participants