alecthomas / alecthomas/voluptuous

Validation stops upon error in first list item

Aperta
#171 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
1.9k
Fork
237
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When passed a list, Voluptuous doesn't complete checking the entire list and returns only the error from the first malformed list item.

**Schema:**
`schema = Schema([{'name': str}])`

**Data and validation:**

```
try:
schema([{'name': 123}, {'name': 123}])

except MultipleInvalid as e:
for error in e.errors:
print(error)
```

**Expected output:**

```
expected str for dictionary value @ data[0]['name']
expected str for dictionary value @ data[1]['name']
```

**Actual output:**
`expected str for dictionary value @ data[0]['name']`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.