Open Grawl opened 3 months ago
const phoneNumber = z.string().openapi('Phone') const mySchema = z.object({ somePhone: phoneNumber.nullable(), anotherPhone: phoneNumber, })
Expected result:
"somePhone": { "allOf": [ { "$ref": "#/components/schemas/Phone" }, ], "nullable": true }, "anotherPhone": { "$ref": "#/components/schemas/Phone" },
Actual result:
"somePhone": { "allOf": [ { "$ref": "#/components/schemas/Phone" }, { "nullable": true } ] }, "anotherPhone": { "$ref": "#/components/schemas/Phone" },
I am using Hono
@AGalabov do you have any info here? Ready to help out here if given a pointer 👍🏻
Expected result:
Actual result:
I am using Hono