MCPcopy Index your code
hub / github.com/markdoc/markdoc / validate

Method validate

src/types.ts:47–47  ·  view source on GitHub ↗
(value: any, config: Config, name: string)

Source from the content-addressed store, hash-verified

45export interface CustomAttributeTypeInterface {
46 transform?(value: any, config: Config): Scalar;
47 validate?(value: any, config: Config, name: string): ValidationError[];
48}
49
50export interface CustomAttributeType {

Callers 7

validateFunction · 0.65
validateTypeFunction · 0.65
validateFunctionFunction · 0.65
validatorFunction · 0.65
validateFunction · 0.65
validateWithCommentsFunction · 0.65
index.tsFile · 0.65

Implementers 3

ConditionalAttributeTypesrc/schema-types/conditional.ts
Classsrc/schema-types/class.ts
Idsrc/schema-types/id.ts

Calls

no outgoing calls

Tested by 3

validateFunction · 0.52
validateFunction · 0.52
validateWithCommentsFunction · 0.52