MCPcopy Create free account
hub / github.com/a-h/rest / WithNullable

Function WithNullable

schema.go:198–202  ·  view source on GitHub ↗

WithNullable sets the nullable field to true.

()

Source from the content-addressed store, hash-verified

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

Callers 1

RegisterModelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected