def resolve

ezmcp@0.1.0.0 · src/openapi.bend:269

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base
import emerging-ezjson@1.2.0.0/src/value.bend as Value

269# what a local reference (`#/` and a JSON Pointer) points to in the
270# document; none for a reference that is not local or points to nothing
271def resolve(+doc: Value.Json, +ref: String) -> Maybe<&2, Value.Json>:
272  resolve.at(String.starts_with(ref, "#/"), doc, ref)

Uses (5)

Used by (1)