When elements of a discriminator does not have a title property the cast fails. The mapping can indeed contain references so we can fallback to use them to retrieve the discriminator schema from ctx.schemas.
A part for variables renaming the main change is this
When elements of a discriminator does not have a
title
property the cast fails. Themapping
can indeed contain references so we can fallback to use them to retrieve the discriminator schema fromctx.schemas
.A part for variables renaming the main change is this