MCPcopy
hub / github.com/directus/directus / getStringSchema

Function getStringSchema

packages/utils/shared/generate-joi.ts:126–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124
125 const getAnySchema = () => schema[key] ?? Joi.any();
126 const getStringSchema = () => (schema[key] ?? Joi.string()) as StringSchema;
127 const getNumberSchema = () => (schema[key] ?? Joi.number()) as NumberSchema;
128 const getDateSchema = () => (schema[key] ?? Joi.date()) as DateSchema;
129

Callers 1

generateJoiFunction · 0.85

Calls 1

stringMethod · 0.80

Tested by

no test coverage detected