Update content_negotiation.md

Not 100% sure, but looks like it should be :date-format, not :data-format here, based on the example in the section above.
This commit is contained in:
Ronny Løvtangen 2021-04-24 22:20:16 +02:00 committed by GitHub
parent caa571cd66
commit 1494641ab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,5 +134,5 @@ If you inspect `m/default-options` it's only a map, therefore you can compose yo
(m/create
(-> m/default-options
(assoc-in [:formats "application/json" :decoder-opts :bigdecimals] true)
(assoc-in [:formats "application/json" :encoder-opts :data-format] "yyyy-MM-dd"))))
(assoc-in [:formats "application/json" :encoder-opts :date-format] "yyyy-MM-dd"))))
```