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

Function scalarJSON

script/ghmock/schemacmd.go:224–237  ·  view source on GitHub ↗

scalarJSON says how a scalar appears in a JSON response.

(name string)

Source from the content-addressed store, hash-verified

222
223// scalarJSON says how a scalar appears in a JSON response.
224func scalarJSON(name string) string {
225 switch {
226 case stringScalars[name]:
227 return "a JSON string"
228 case name == "Int":
229 return "a 32-bit whole number"
230 case name == "Float":
231 return "a JSON number"
232 case name == "Boolean":
233 return "true or false"
234 default:
235 return "any JSON value"
236 }
237}
238
239func graphQLTypeNames(schema *ast.Schema) []string {
240 var names []string

Callers 1

writeGraphQLTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected