class_docstr: Validator for maximum value.
class_docstr_tok: ["Validator","for","maximum","value","."]
docstr: Validate value.
docstr_tok: ["Validate","value","."]
code: def validate(self, value):
      """Validate value."""
      if self.exclusive:
          if value >= self.maximum_value:
              tpl = "'{val}' is bigger or equal than maximum ('{max}')."
              raise ValidationError(
                  tpl.format(val=value, max=self.maximum_value)
              )
      else:
          if value > self.maximum_value:
              raise ValidationError(
                  "'{value}' is bigger than maximum ('{max}').".format(
                      value=value, max=self.maximum_value
                  )
              )
  
imports: import re
  from six.moves import reduce
  from .errors import ValidationError
  from .None import utilities
label_desc: Use image node_id 2 for calling the Max obj's underlying member method code with example usage: obj.validate(value) without return types