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

How to reference a schema ? #14

Open
AkshitKhajuria opened this issue Oct 19, 2020 · 1 comment
Open

How to reference a schema ? #14

AkshitKhajuria opened this issue Oct 19, 2020 · 1 comment

Comments

@AkshitKhajuria
Copy link

Suppose I have a two dates - fromDate and toDate and I don't want the toDate to be before fromDate. In joi I would refer fromDate as follows -

  • fromDate: Joi.date().iso().required(),
  • toDate : Joi.date().iso().greater(Joi.ref('startTime')).required()

How can I do the same in joi-json ??

@AkshitKhajuria
Copy link
Author

2 years and still nothing! Wow.

Thanks China! 🇨🇳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant