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
I'm currently using swagger-typescript-api to generate my API client from an OpenAPI 3.0 document. I have a PATCH endpoint with a requestBody defined as follows:
I would like the generated client to either include application/merge-patch+json as a distinct value in the ContentType enum (e.g., ContentType.MergePatchJson).
What is the recommended approach to achieve this customization?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm currently using swagger-typescript-api to generate my API client from an OpenAPI 3.0 document. I have a PATCH endpoint with a requestBody defined as follows:
When the client is generated, the contentType for this request defaults to ContentType.Json, as shown in the generated code snippet below:
I would like the generated client to either include
application/merge-patch+json
as a distinct value in theContentType
enum (e.g., ContentType.MergePatchJson).What is the recommended approach to achieve this customization?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions