ajv-validator / ajv-validator/ajv-errors
support $ref
Aberta
- Linguagem predominante
- TypeScript
- Estrelas
- 289
- Forks
- 21
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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" }
}
```
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.