Issue with Renaming Keys in `Schema.Record` Using `Schema.transformLiteral`

It seems not possible to rename a Schema.Record's key using Schema.transformLiteral, as it fails with:
Unsupported key schema
schema (Transformation): ("old_key" <-> "newKey")


My use case is that I have a record from the DB and the key is optional as it can be undefined (not selected), null (no value) and parsed in a specific value.

It is a design problem by me or a (possible current known) limitation of Schema?
Was this page helpful?