Should be used if RestResponses 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 RestResponses of the wrapped type but also introduces some schema modifications. See io.udash.rest.RestDataWrapperCompanion.
Typeclass which defines how an OpenAPI Responses Object will look like for a given type. By default, RestResponses is derived based on RestMediaTypes for that type which is itself derived by default from RestSchema for that type. It should be defined manually for every type which has custom serialization to RestResponse defined so that generated OpenAPI properly reflects that custom serialization format.