Skip to content

[BUG][typescript-fetch] withInterfaces option does not generate interfaces #3478

@fuzzzerd

Description

@fuzzzerd

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

Compare these files in the samples directory:

https://github.com/OpenAPITools/openapi-generator/blob/master/samples/client/petstore/typescript-fetch/builds/default/apis/PetApi.ts

vs

https://github.com/OpenAPITools/openapi-generator/blob/master/samples/client/petstore/typescript-fetch/builds/with-interfaces/apis/PetApi.ts

openapi-generator version

Master branch

Suggest a fix

Could not find reference to withInterfaces parameter in the mustache templates, and no difference in the generated api.

Option should be removed from documentation or re-implemented for typescript-fetch

https://openapi-generator.tech/docs/generators/typescript-fetch

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