-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[@kubb/plugin-client] An error will be thrown when baseUrl is not defined. #1495
Comments
In my scenario, there may be three baseUrls in the code generated by OpenAPI. Is there a way to dynamically select the candidate values for baseUrl through parameter passing? |
Maybe related to #1463 (comment) ? |
Base should be optional so not sure if that is the error or something else is going on: https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#base |
url (in the case of absolute URLs) or base + url (in the case of relative references) is not a valid URL. |
|
What version of
kubb
is running?3.4.0
What kind of platform do you use?
MacOS
How does your
kubb.config.ts
config look likeNo response
Swagger/OpenAPI file?
No response
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...)No response
What steps can reproduce the bug?
When the baseUrl of the plugin-client is not defined, the generated code is as follows.
This will throw an exception. In the previous version, it was okay. Maybe a default baseUrl should be provided here.
How often does this bug happen?
None
What is the expected behavior?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: