Skip to content

content : {"application/json ; charset=utf-8": ... } not recognized by some tooling #12

Description

@fwaris

The swagger.json file has media type as "application/json; charset=utf-8", e.g:

"responses": {
          "200": {
            "description": "Symbol Suggest",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/SymbolSuggestDefinition"
                }
              }
            }
          },

This is not recognized by some tooling that auto-generate client code (e.g. SwaggerProvider).

I changed "application/json; charset=utf-8" to just "application/json" to fix this issue.

Of course, the tooling does not handle the streaming media type so those api calls can't be done with the generated code - but its good to have the rest auto-generated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions