MCPcopy Create free account
hub / github.com/santhosh-tekuri/jsonschema / enqueueMap

Method enqueueMap

objcompiler.go:403–414  ·  view source on GitHub ↗
(pname string)

Source from the content-addressed store, hash-verified

401}
402
403func (c *objCompiler) enqueueMap(pname string) map[string]*Schema {
404 obj := c.objVal(pname)
405 if obj == nil {
406 return nil
407 }
408 sch := make(map[string]*Schema)
409 for k := range obj {
410 ptr := c.up.ptr.append2(pname, k)
411 sch[k] = c.enqueuePtr(ptr)
412 }
413 return sch
414}
415
416func (c *objCompiler) enqueueAdditional(pname string) any {
417 if b := c.boolVal(pname); b != nil {

Callers 2

compileDraft4Method · 0.95
compileDraft2019Method · 0.95

Calls 3

objValMethod · 0.95
enqueuePtrMethod · 0.95
append2Method · 0.80

Tested by

no test coverage detected