stanisław
Explore posts from serversAarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
I will do it @ArkDavid if not today then on the weekend
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
It would be useful to look at this zod to json schema as it looks battle tested and make the outputs similar so the tools like open api work properly
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
sure thanks for help
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
and there is a transform
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
https://github.com/fastify/fastify-swagger
I am using this internally
(not that this issue might not be related to arktype I just noticed the difference when I was migrating and it's a pretty big deal)
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
where with zod its correct 0 or 1
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
it's just 0
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
then u can see that value is not an enum
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.

32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
But when u actually paste it to open api
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
that's this params
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
The difference is the interpretation of such a schema by open api generators
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
and ArkType has anyOf
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
This is the generated JSON for both.
You can see that zod has
32 replies
Aarktype
•Created by stanisław on 2/27/2025 in #questions
ArkType `toJsonSchema` returning not open-api compatible schema.
32 replies