:tocdepth: 3 :py:mod:`gws.base.model.validator` ================================== .. py:module:: gws.base.model.validator .. autoapi-nested-parse:: Base model validator. **Source code:** :source:`gws.base.model.validator` Module Contents --------------- .. py:class:: Config(*args, **kwargs) Bases: :py:obj:`gws.Config` Configuration for the model validator. .. py:attribute:: forCreate :type: bool :value: True If True, the validator is applied when creating a new object. .. py:attribute:: forUpdate :type: bool :value: True If True, the validator is applied when updating an existing object. .. py:attribute:: message :type: str :value: '' Error message prefix for validation errors. .. py:data:: DEFAULT_MESSAGE_PREFIX :value: 'validationError_' .. py:class:: Object Bases: :py:obj:`gws.ModelValidator` Model Validator. .. py:method:: configure() Configuration hook.