Skip to content

Latest commit

History

History
51 lines (40 loc) 路 1.6 KB

README.md

File metadata and controls

51 lines (40 loc) 路 1.6 KB



Chickpea

Extension of the Java Bean Validation Specification providing useful annotations for common validation formats.

馃コ Creating new @Annotation

The best way to getting started with creating a new annotation for chickpea is to use the create_new_annotation.py script. This does require python3, but following the prompts when running:

  python scripts/create_new_annotation.py

You can create the base files for a new annotation! Below is an example of the script in action:

python script/create_new_annotation.py 
馃珮 Annotation name: MyNewAnnotation
馃珮 Package offset from dev.joss.chickpea.constraints (e.g. str, aws, or something new): new.package
馃珮 Author name: Your Name Here
馃コ Successfully Created @MyNewAnnotation