-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
The RFC describing content-type allows for arbitrary semicolon-separated key-value pairs as parameters. Currently, Muuntaja cares only about charset and won't work correctly if there are other parameters.
Apart from the "not working" part, having custom parameters is also helpful when attempting to customize the representation without changing the format, where the customization is possible at the application level.
E.g. in addition to application/json and application/edn it's useful to handle application/json;pretty=true and application/edn;pretty=true, in particular when dealing with Swagger UI.
My current workaround is to use an extra content type of application/edn-pretty where I care about pretty-printing.
yqrashawn and leifmetcalf
Metadata
Metadata
Assignees
Labels
No labels