-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
Description
For current cadl-ranch test case: https://github.com/Azure/cadl-ranch/blob/main/packages/cadl-ranch-specs/http/type/model/inheritance/nested-discriminator/main.tsp, the deserialization for the nested discriminator will be wrong.
For example, when we call test.partner.sharktype, we will get error.
test = Salmon(
{
"age": 1,
"kind": "salmon",
"partner": {
"age": 2,
"kind": "shark",
"sharktype": "saw",
}
})
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.