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

Function withoutAllOf

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

Source from the content-addressed store, hash-verified

374}
375
376func withoutAllOf(s *openapi3.Schema) *openapi3.Schema {
377 copied := *s
378 copied.AllOf = nil
379 return &copied
380}
381
382func allowsNull(s *openapi3.Schema) bool {
383 return s.Nullable || s.Type.Includes("null")

Callers 1

generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected