ajv-validator / ajv-validator/ajv-cli

ajv-cli dies when evaluating yaml with duplicate object keys

Đang mở
#211 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
316
Fork
77
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When running on yml with duplicate object keys, ajv fails and errors out with the following error. Let me know if this is something I'm missing on my side?

Command
```
ajv validate -d "definitions/v3/*.yml" -s "definitions/v3/schema.json" --verbose
```

Error:
```
error: Invalid left-hand side expression in prefix operation
```

Example Yaml
```
---
id: example
name: Example

caps:
date: pass
date: other
```

Version: 5.0.0 (installed via npm)
Scemas: Tested with a draft07 and draft2020

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.