-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Hi, I noticed that the application/json-patch+json MIME type is not supported, which is needed for PATCH operations. This type is defined in RFC 6902.
The problem is that the accepted MIME types are a fixed list, so if the type is not mapped there, it breaks during swag generation:
ParseComment error in file XXX.go :json-patch+json accept type can't be accepted
To solve this, a possible solution might be adding the type mapping as json-patch into the MIME list.
Other alternatives might be supporting a full Content-Type declaration, with no mapping, considering the user value as the final accept/produce values.
Thanks!