top | item 46573400

(no title)

tvink | 1 month ago

Probably because you didn't include the content type header?

discuss

order

therealwardo|1 month ago

yep that would fix it. just needs a little docs change.

a "quick start" really should just work when you copy paste them.

rendaw|1 month ago

Can it be some other content type?

ch2026|1 month ago

why does an API that only accepts json need me to specify in a header that it’s json.

just assume it’s json. you’re gonna parse and validate it anyway.

cess11|1 month ago

If it turns out that someone is willing to pay for some other protocol then they just have to hook it up to that MIME type and start serving. It might be possible that they can derive an implementation of that protocol from their data schemas.

If they hardcode JSON such a change would be breaking for their previous users.

bflesch|1 month ago

that's actually a reasonable point.