huma icon indicating copy to clipboard operation
huma copied to clipboard

Make pointers and/or `OmittableNullable` nullable in the generated OpenAPI spec

Open gregoryjjb opened this issue 5 months ago • 10 comments

How can I set fields to be nullable in the generated spec? I can't find any way to set nullability on a Schema.

Ideally I'd like to make pointers always nullable (to match my Go code as closely as possible), and/or have custom types like the OmittableNullable example generate as nullable.

Thanks in advance ❤️

gregoryjjb avatar Feb 11 '24 06:02 gregoryjjb