Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/validation-detector.ts
Validation Detector
Methods
| Method | Signature | Returns |
|---|---|---|
detect | detect(entities: Entity[]) | DetectedValidation[] |
describeValidation | describeValidation(validation: DetectedValidation) | string |
Where it refuses work
ValidationDetectorstops the work with an early return when!code.includes('yup') && !code.includes('Yup').ValidationDetectorstops the work with an early return when!code.includes('z.object') && !code.includes('z.string').ValidationDetectorstops the work with an early return when!code.includes('Joi.object') && !code.includes('Joi.string').ValidationDetectorstops the work with an early return when!code.includes('@Is') && !code.includes('@Min') && !code.includes('@Max').ValidationDetectorstops the work with an early return when!code.includes('BaseModel') && !code.includes('Field(').ValidationDetectorstops the work with an early return when!code.includes('[Required]') && !code.includes('[StringLength').
Was this page helpful?