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

Function isObjectSchema

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

Source from the content-addressed store, hash-verified

384}
385
386func isObjectSchema(s *openapi3.Schema) bool {
387 return s.Type.Is("object") || (len(s.Type.Slice()) == 0 && len(s.Properties) > 0)
388}
389
390// typeMatches reports whether a decoded JSON value has one of a schema's types.
391func typeMatches(s *openapi3.Schema, v any) bool {

Callers 3

fillMethod · 0.85
generateMethod · 0.85
typeMatchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected