ajv-validator / ajv-validator/ajv-errors

support $ref

オープン
#18 コメント 0 件 リアクション 9 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
289
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

説明

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" }
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。