@petr.mensik You need to define a custom Coercion and set that into api, context or endpoint. There is an example in the wiki: https://github.com/metosin/compojure-api/wiki/Coercion#custom-schema-coercion
Coercion
api
context