MCPcopy
hub / github.com/ajv-validator/ajv / noPropertyInData

Function noPropertyInData

lib/vocabularies/code.ts:55–63  ·  view source on GitHub ↗
(
  gen: CodeGen,
  data: Name,
  property: Name | string,
  ownProperties?: boolean
)

Source from the content-addressed store, hash-verified

53}
54
55export function noPropertyInData(
56 gen: CodeGen,
57 data: Name,
58 property: Name | string,
59 ownProperties?: boolean
60): Code {
61 const cond = _`${data}${getProperty(property)} === undefined`
62 return ownProperties ? or(cond, not(isOwnProperty(gen, data, property))) : cond
63}
64
65export function allSchemaProperties(schemaMap?: SchemaMap): string[] {
66 return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : []

Callers 3

loopAllRequiredFunction · 0.90
checkReportMissingPropFunction · 0.85
checkMissingPropFunction · 0.85

Calls 5

_Function · 0.90
getPropertyFunction · 0.90
orFunction · 0.90
notFunction · 0.90
isOwnPropertyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…