Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add value restrictions for some common date formats #74

Open
ssnyder opened this issue May 24, 2018 · 2 comments
Open

Add value restrictions for some common date formats #74

ssnyder opened this issue May 24, 2018 · 2 comments
Labels
annotations Java Annotations enhancement Proposed Enhancement/Feature user-experience Improves user experience
Milestone

Comments

@ssnyder
Copy link

ssnyder commented May 24, 2018

The value restrictions are awesome - I'm updating my older code to make use of some of them to make my code that much easier to read/parse and improve the Help as well.

I thought a reasonable addition would be to create additional value restrictions for some common date formats (or allow us to specify the formatting in the markup) would make sense to add as well. This would be for Date and DateTime.

@rvesse rvesse added enhancement Proposed Enhancement/Feature annotations Java Annotations labels May 25, 2018
@rvesse
Copy link
Owner

rvesse commented May 25, 2018

Related to #73, definitely something on the to do list.

My thinking on date time handling would be to do a separate module - maybe airline-datetime-restrictions? - that brings in http://www.joda.org/joda-time/ as a dependency since JDK Date Time support is pretty rough and I would like to avoid adding extra dependencies to the core if possible.

If you want to take a stab at this yourself there is now documentation on everything necessary for defining new restrictions - http://rvesse.github.io/airline/guide/restrictions/custom.html

@rvesse rvesse added the user-experience Improves user experience label Jul 4, 2018
@ssnyder
Copy link
Author

ssnyder commented Jul 23, 2018

Thanks!

@rvesse rvesse added this to the Future Feature Release milestone Sep 3, 2018
@rvesse rvesse modified the milestones: 2.9.x, Unscheduled Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annotations Java Annotations enhancement Proposed Enhancement/Feature user-experience Improves user experience
Projects
None yet
Development

No branches or pull requests

2 participants