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

Function alternatives

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

Source from the content-addressed store, hash-verified

370}
371
372func alternatives(s *openapi3.Schema) openapi3.SchemaRefs {
373 return append(append(openapi3.SchemaRefs{}, s.OneOf...), s.AnyOf...)
374}
375
376func withoutAllOf(s *openapi3.Schema) *openapi3.Schema {
377 copied := *s

Callers 2

fillMethod · 0.85
generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected