@@ -24,24 +24,28 @@ def __init__(
24
24
message : str
25
25
Powertools formatted error message
26
26
validation_message : str, optional
27
- Containing human-readable information what is wrong (e.g. ``data.property[index] must be smaller than or
28
- equal to 42` `)
27
+ Containing human-readable information what is wrong
28
+ (e.g. `data.property[index] must be smaller than or equal to 42`)
29
29
name : str, optional
30
- name of a path in the data structure (e.g. ``data.property[index]``)
30
+ name of a path in the data structure
31
+ (e.g. `data.property[index]`)
31
32
path: List, optional
32
- ``path`` as an array in the data structure (e.g. ``['data', 'property', 'index']``),
33
+ `path` as an array in the data structure
34
+ (e.g. `['data', 'property', 'index']`),
33
35
value : Any, optional
34
- the invalid value
36
+ The invalid value
35
37
definition : Any, optional
36
- The full rule ``definition`` (e.g. ``42``)
38
+ The full rule `definition`
39
+ (e.g. `42`)
37
40
rule : str, optional
38
- `rule`` which the ``data`` is breaking (e.g. ``maximum``)
41
+ `rule` which the `data` is breaking
42
+ (e.g. `maximum`)
39
43
rule_definition : Any, optional
40
- The full rule ``definition`` (e.g. ``42``)
44
+ The specific rule `definition`
45
+ (e.g. `42`)
41
46
"""
42
47
super ().__init__ (message )
43
48
self .message = message
44
-
45
49
self .validation_message = validation_message
46
50
self .name = name
47
51
self .path = path
0 commit comments