Skip to content

[UUF] Code is incorrect #46351

Open
Open
@gewarren

Description

@gewarren

Type of issue

Code doesn't work

Description

The line "JsonNode schema = options. GetJsonSchemaAsNode(typeof(Person));" is incorrect. I believe it should be more likeJsonNode schema =JsonSchemaExporter.GetJsonSchemaAsNode(options, typeof(MyPoco));"

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/extract-schema

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/serialization/system-text-json/extract-schema.md

Document Version Independent Id

47254957-c6a4-dc74-1d1a-40e1e04febef

Platform Id

06fd6273-de06-c1a4-181b-aecab634e6e7

Article author

@gewarren

Metadata

  • ID: 8bb25791-a3f3-2fb6-39be-0259b0832d1a
  • PlatformId: 06fd6273-de06-c1a4-181b-aecab634e6e7
  • Service: dotnet-fundamentals

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🔖 Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions