import command doesn't throw error for invalid json
Ouverte
- Langage dominant
- Go
- Étoiles
- 471
- Forks
- 47
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Currently, abc doesn't throw an error when we have an invalid JSON file, rather it succeeds with 0 records inserted.
## How to replicate
* Create an invalid JSON file. Here file has extra `,`
```
echo '[
{
"name": "jame",
"email": "jame@yopmail.com",
}
]' > test1.json
```
* Try abc command
`abc import --src_type=json --src_uri=test1.json --log.level=debug http://admin:admin@localhost:9200/test`
* `abc` version used here: `1.0.0 Preview Release 2`
## Expected output
Command should throw an error with correct exit status, if the command fails
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.