Skip to content

@rtk-query/codegen ignores application/vnd.api+json content #3721

Open
@Onurfesci

Description

@Onurfesci

If I have a JSON:API OpenAPI spec that has application/vnd.api+json content type in the response, it is ignored by the codegen and the resulting response type is unknown.

For example:

"200" : {
  "content" : {
    "application/vnd.api+json" : {
      "schema" : {
        "$ref" : "#/components/schemas/UserProfile"
      }
    }
  },
  "description" : "Result of performing a successful operation"
},

results in:

export type GetUserProfileApiResponse = unknown;

Could application/vnd.api+json be parsed as a valid content type?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions