`encodePretty` is used in a code example in https://hackage.haskell.org/package/openapi3-3.2.4/docs/Data-OpenApi.html, but it's not actually exposerted by that module. One needs to explicitly import `Data.OpenApi.Internal.Utils`.