-
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Environment
@orpc/*@1.8.0
node@22
Reproduction
https://github.com/boredland/orpc-arktype-openapi-repro
Describe the bug
I tried to stick mostly to the docs around openapi, sadly most of my arktype validators didn't work, as soon as I provided "slightly" more complicated validation logic in my schema (like a bigint, transformations, narrows etc. - included some commented-out examples in my repro). Isn't this supposed to work? I know it is marked experimental
, so my expectations were not very high, but also I didn't expect it to crash out with simple examples like that and fear I might be doing something wrong.
Additional context
No response
Logs
for example:
file:/.../orpc-arktype-swagger-repro/node_modules/@ark/schema/out/shared/toJsonSchema.js:35
throw new ToJsonSchema.Error(...args);
^
ToJsonSchemaError: {
code: "predicate",
base: {
type: "string"
},
predicate: Function(isParsableDate)
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request