WithNullable sets the nullable field to true.
()
| 196 | |
| 197 | // WithNullable sets the nullable field to true. |
| 198 | func WithNullable() ModelOpts { |
| 199 | return func(s *openapi3.Schema) { |
| 200 | s.Nullable = true |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | // WithDescription sets the description field on the schema. |
| 205 | func WithDescription(desc string) ModelOpts { |