department-of-veterans-affairs/vets-website

View on GitHub
src/applications/simple-forms/21-10210/definitions/form-definitions.js

Summary

Maintainability
A
0 mins
Test Coverage
// definitions with form-specific overrides
export default {
  pdfEmail: {
    type: 'string',
    maxLength: 40, // PDF-specific override
    format: 'email',
  },
  phone: {
    type: 'string',
    minLength: 10,
    pattern: '^\\d{3}-?\\d{3}-?\\d{4}$',
  },
};