teobler / swr-request-generator

A tool for generating TypeScript code and interface from swagger by using SWR and axios as client.

Home Page:https://www.npmjs.com/package/@openapi-integration/swr-request-generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notify error for missing OperationId

nicol-ograve opened this issue · comments

If in the OpenApi endpoint the operationId is missing, the related hook is called with the generic name "useRequest".
So, if multiple endpoints don't have an operationId, the result is corrupted because is trying to export multiple functions with the same name.
An error indicating the problem would be useful to understand what underlying problem is causing the error

added a log for this situation, but it seems hard to notice log message in terminal, will do some enhance related to logs, leave this issue open, will close after enhance.

Hi @nicol-ograve v1.2.0 released, kindly check changelog