nuxt-open-fetch icon indicating copy to clipboard operation
nuxt-open-fetch copied to clipboard

Response type helpers only include 200 response codes

Open adamdehaven opened this issue 8 months ago • 1 comments

Environment

  • Operating System: Darwin
  • Node Version: v22.12.0
  • Nuxt Version: 3.15.4
  • CLI Version: 3.22.5
  • Nitro Version: 2.10.4
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

The generated Response types here only include 200 response codes.

Describe the bug

In order to utilize the Response type helpers in a downstream application, all 2xx response codes should be supported in order to utilize interfaces from endpoints that return a non-200 status (e.g. 201)

Additional context

No response

Logs


adamdehaven avatar Mar 12 '25 17:03 adamdehaven

@enkot this PR should resolve 😄 https://github.com/enkot/nuxt-open-fetch/pull/89

adamdehaven avatar Mar 12 '25 18:03 adamdehaven