resolveDescriptor
resolveDescriptor(
input,loader):Promise<ResolvedDescriptor>
Defined in: packages/sdk/src/resolve/resolve.ts:104
Merge includes, inline field $refs, and hash the canonical merged document.
loader is invoked for each includes URI. Filesystem vs fetch is the
caller’s concern (CLI later, runtime later). Missing includes throw.
Parameters
Section titled “Parameters”InputDescriptor
loader
Section titled “loader”Returns
Section titled “Returns”Promise<ResolvedDescriptor>
Throws
Section titled “Throws”DescriptorResolveError VALIDATION_FAILED when the document
or the merge is not a valid descriptor, INCLUDE_NOT_FOUND or INCLUDE_CYCLE
or INCLUDE_DEPTH when an include cannot be loaded, and REF_NOT_FOUND
when a field $ref does not name a display definition.