Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

client, model serialized to JSON does not have discriminator property, in option "pass-discriminator-to-child-deserialization" #2411

Description

@weidongxu-microsoft

See #2408

Current generated code seems get confused around


The serialization can work with either

  • use JsonTypeInfo.As.PROPERTY

or

  • remove the JsonTypeId and make discriminator a (standard JSON property) class variable (not static)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions