validation.py 261 B

1234567891011
  1. # -*- coding: utf-8 -*-
  2. #!/usr/bin/env python
  3. from apps.web.core.validation import Schema, Required, Coerce, REMOVE_EXTRA
  4. logicalCodeRange = Schema(
  5. {
  6. Required('start'): Coerce(int),
  7. Required('end'): Coerce(int)
  8. }, extra=REMOVE_EXTRA
  9. )