You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The RFC describing
content-type
allows for arbitrary semicolon-separated key-value pairs as parameters. Currently, Muuntaja cares only aboutcharset
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
andapplication/edn
it's useful to handleapplication/json;pretty=true
andapplication/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.The text was updated successfully, but these errors were encountered: