Should be used if RestMediaTypes is being built based on RestSchema for the same type. The transformation may adjust the schema and give it a different name. This transformation is usually used when there's a type that wraps another type and wants to reuse RestMediaTypes of the wrapped type but also introduces some schema modifications. See io.udash.rest.RestDataWrapperCompanion.
Intermediate typeclass which serves as basis for RestResponses and RestRequestBody. RestMediaTypes is derived by default from RestSchema. It should be defined manually for every type which has custom serialization to HttpBody defined so that generated OpenAPI properly reflects that custom serialization format.