ajv icon indicating copy to clipboard operation
ajv copied to clipboard

How can I define order of validation rules for the field

Open dnfrolov opened this issue 10 years ago • 2 comments

Is it possible to define order of rules execution?

dnfrolov avatar May 18 '16 10:05 dnfrolov

I was considering implementing it, but decided against it. I think it's clearer to use allOf in schemas where the order is important. In allOf subschemas are validated in order.

epoberezkin avatar May 18 '16 11:05 epoberezkin

Thank you. It's exactly what I need.

dnfrolov avatar May 18 '16 11:05 dnfrolov