alecthomas / alecthomas/voluptuous
Validation stops upon error in first list item
Aberta
- Linguagem predominante
- Python
- Estrelas
- 1.9k
- Forks
- 237
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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']`
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.