Skip to content

Commit

Permalink
Update validate doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
chipn committed Mar 1, 2021
1 parent 622feea commit 01297dc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion schema_enforcer/schemas/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,17 @@ def clear_results(self):
self._results = []

def validate(self, data: dict, strict: bool):
"""Required function for custom validator."""
"""Required function for custom validator.
Args:
data (dict): variables to be validated by validator
strict (bool): true when --strict cli option is used to request strict validation (if provided)
Returns:
None
Use add_validation_error and add_validation_pass to report results.
"""
raise NotImplementedError


Expand Down

0 comments on commit 01297dc

Please sign in to comment.