Example 9
Redesigned Annotation-based Validation

| No Conversion | Pair Conversion | Auto Conversion | Default Conversion | Manual Parameter Conversion |

Parameters set a string, formatted field of the same name then converted to their non-string, unformatted pair

Required + IntegerRange

  • Score:
  •  

MaxLength + Boolean

  • Name:
  • Flag:
  •  

Date + Custom Post Validator

  • Date of Birth:
  •  

Required + MaxLength + Integer

  • Name:
  • Rating:
  •  

Enum + Manual Validation

  • Tech Company:
  • Attitude:
  •  

Required + Customer Converter + MinInteger

  • Price:
  •