we have that for standard lenses (you can specify a fallback in the case of a missing query parameter for instance), but nothing for bodies. jackson has ways to annotate types with discriminator fields to select the type to attempt if you want to go down that route.