cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

Content type with equal sign in mime type shouldn't be encoded #274

Closed ziodave closed 1 year ago

ziodave commented 1 year ago

I have a yaml file with the following:

      (...omissis...)

      responses:
        "200":
          content:
            application/vnd.my-custom-type+json;version=2:
              schema:

      (...omissis...)

When the service is created however the = sign is encoded:

      (...omissis...)

    return this.http
      .request(
        rb.build({
          responseType: 'json',
          accept:
            'application/vnd.my-custom-type+json;version=2',
          context: params?.context,
        })
      )

      (...omissis...)

Is there a way to fix this?