ajv-validator / ajv-validator/ajv-errors
support $ref
オープン
- 主要言語
- 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 はまだ評価されていません。