Skip to content

Function: getSchemaForPath() ​

ts
function getSchemaForPath(path, ctx): ResolvedSchema;

Defined in: domain/shadow-model.ts:182

Resolves the schema node and type name at path in the profile schema. Numeric segments step into array items. For oneOf/anyOf the first option is used. Returns { node: null, refName: null } when the path does not exist in the schema.

Parameters ​

ParameterType
path(string | number)[]
ctxSchemaContext

Returns ​

ResolvedSchema