ajv-validator / ajv-validator/ajv-errors

support $ref

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

Mô tả

I would love to see support added for the ```$ref``` keyword. I have several error messages that are used throughout my schemas, and it would be helpful to only have to define them once.

```js
// error schema
{
"$id": "errors",
"string": "must be a string",
"basicObject": {
"type": { "$ref": "#/string" }
}
}

// schema
{
"type": "string",
"errorMessage": { "$ref": "errors#/basicObject" }
}
```

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.