Allow content-type `application/merge-patch+json`
Description
First, thank you for a great generation tool!
In a patch request, there is a meaningful difference between setting a field to null and a field being missing, but handling this in Go can be challenging. I was looking for projects that are seriously addressing this issue.
https://ogen.dev/docs/types/optional/
However, despite such excellent efforts, I realized that it is not possible to use the content-type application/merge-patch+json.
The internal processing should be almost the same as JSON, so the necessary implementation can be kept to a minimum. I would appreciate your support.
References
Same is probably true for e.g. application/problem+json (see).
Or application/scim+json (https://datatracker.ietf.org/doc/html/rfc7644). Basically, +json should be accepted for custom mime types. Alternatively: a config setting to specify custom mime types and how to treat them.
We can use the content_type_aliases option to support these types, like this:
content_type_aliases:
application/problem+json: "application/json"
application/merge-patch+json: "application/json"
ref. https://github.com/ogen-go/ogen/blob/72cb51bbb505cc9472bec11ca93a26c9e1e8c1e4/gen/options.go#L173-L174
It might be helpful to include this in the documentation or examples, since supporting custom MIME types is a fairly common need.