Skip to content

[BUG][typescript] Property '...RequestConfig' does not exist on type 'DefaultApi'. Did you mean '...RequestOpts' #22813

@luketudge

Description

@luketudge

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

As of a couple of hours ago for the latest dockerhub image the generate typescript client gets various build errors of the form:

Property '...Config' does not exist on type 'DefaultApi'. Did you mean '...Opts'
openapi-generator version

Dockerhub latest https://hub.docker.com/layers/openapitools/openapi-generator-cli/latest

Steps to reproduce

Apologies, haven't distilled exact steps yet, will work on it. But seems to be fairly ubiquitous, probably reproducible in most uses of the typescript-fetch generator. Will check as soon as possible.

Related issues/PRs

Maybe the recent merge of #21709 ?

Looks like the mismatch between Config and Opts might have been introduced by a renaming in response to PR comments here: #21709 (comment)

Not sure though, just a guess based on the timing and the nature of the change.

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