You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of external packages are you using(@tanstack-query, MSW, React, Vue, ...)
No response
What steps can reproduce the bug?
OpenApi schema with property "format": "uri" generated into url(), which is incorrect. URI !== URL.
e.g. this is valid uri: tel:000000 but not valid URL
Since there is no URI representation in zod, we should just use more wide string() type
Also in OpenAI itself uri has some variability in implementation
What version of
kubb
is running?kubb/2.1.6 darwin-arm64 node-v18.17.0
What platform is your computer?
macOS
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...)No response
What steps can reproduce the bug?
OpenApi schema with property
"format": "uri"
generated intourl()
, which is incorrect.URI
!==URL
.e.g. this is valid
uri
:tel:000000
but not validURL
See docs on URL https://url.spec.whatwg.org/
See docs on URI https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
e.g. for OpenAPI file provided below following schema will be generated
How often does this bug happen?
Every time
What is the expected behavior?
Since there is no URI representation in zod, we should just use more wide
string()
typeAlso in OpenAI itself
uri
has some variability in implementationThis schema should be generated
Swagger/OpenAPI file?
Additional information
No response
The text was updated successfully, but these errors were encountered: