ajv-validator / ajv-validator/ajv-errors
support $ref
Abierto
- Lenguaje dominante
- TypeScript
- Estrellas
- 289
- Forks
- 21
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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" }
}
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.