According to https://swagger.io/docs/specification/describing-request-body/ "OneOf" is a valid element to describe alternate schemas in the request body.