fabien0102 / openapi-codegen

A tool for generating code base on an OpenAPI schema.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Take in account `application/merge-patch+json` content type

sneko opened this issue · comments

Hi,

I do have body parameters into my Swagger UI and my openapi.json for patch operations, but the TS generator seems to skip them.

I'm wondering if it's due due to content type application/merge-patch+json not being handled. Any workaround on your side for this?

Here an extract of the openapi.json:

                "requestBody": {
                    "description": "The updated Intervention resource",
                    "content": {
                        "application/merge-patch+json": {
                            "schema": {
                                "$ref": "#/components/schemas/Intervention-intervention.patch"
                            }
                        }
                    },
                    "required": true
                },

Thank you,