Commit a44bd6d
fix(parser): remove AttributeError validation from event_parser function (#5742)
* add pydatinc validationError
* removed unnecessary exc from exceptions
Signed-off-by: Ana Falcão <[email protected]>
* add two more validation error tests
* add more specific error tests
* remove one specific error test
* fix doc and add more test
* change funct doc and more tests
* remove unused import
* change error message
* remove exceptions not needed
* remove error handling from decorator
* revert from the original file
* revert another test
---------
Signed-off-by: Ana Falcão <[email protected]>
Co-authored-by: Ana Falcao <[email protected]>
Co-authored-by: Leandro Damascena <[email protected]>1 parent aded1a9 commit a44bd6d
File tree
2 files changed
+82
-17
lines changed- aws_lambda_powertools/utilities/parser
- tests/functional/parser
2 files changed
+82
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
116 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
| |||
192 | 189 | | |
193 | 190 | | |
194 | 191 | | |
| 192 | + | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
| |||
204 | 202 | | |
205 | 203 | | |
206 | 204 | | |
207 | | - | |
| 205 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
133 | 195 | | |
134 | 196 | | |
135 | 197 | | |
| |||
138 | 200 | | |
139 | 201 | | |
140 | 202 | | |
141 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
142 | 207 | | |
143 | 208 | | |
144 | 209 | | |
| |||
163 | 228 | | |
164 | 229 | | |
165 | 230 | | |
166 | | - | |
167 | 231 | | |
168 | 232 | | |
169 | 233 | | |
170 | 234 | | |
171 | 235 | | |
172 | 236 | | |
173 | 237 | | |
174 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
175 | 242 | | |
176 | 243 | | |
177 | 244 | | |
| |||
0 commit comments