MCPcopy Create free account
hub / github.com/cli/cli / allowsNull

Function allowsNull

script/ghmock/restscaffold.go:382–384  ·  view source on GitHub ↗
(s *openapi3.Schema)

Source from the content-addressed store, hash-verified

380}
381
382func allowsNull(s *openapi3.Schema) bool {
383 return s.Nullable || s.Type.Includes("null")
384}
385
386func isObjectSchema(s *openapi3.Schema) bool {
387 return s.Type.Is("object") || (len(s.Type.Slice()) == 0 && len(s.Properties) > 0)

Callers 2

fillMethod · 0.85
generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected