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

Function shouldUseGroup

lib/compile/validate/applicability.ts:13–15  ·  view source on GitHub ↗
(schema: AnySchemaObject, group: RuleGroup)

Source from the content-addressed store, hash-verified

11}
12
13export function shouldUseGroup(schema: AnySchemaObject, group: RuleGroup): boolean {
14 return group.rules.some((rule) => shouldUseRule(schema, rule))
15}
16
17export function shouldUseRule(schema: AnySchemaObject, rule: Rule): boolean | undefined {
18 return (

Callers 2

groupKeywordsFunction · 0.90
schemaHasRulesForTypeFunction · 0.85

Calls 1

shouldUseRuleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…