FasterXML / FasterXML/jackson-databind

Allow custom formats in JSON Schemas

Abierto
#757 1 comentario 0 reacciones 0 asignados Ver en GitHub
3.x
Lenguaje dominante
Java
Estrellas
3.7k
Forks
1.5k
Merge medio
3 d 6 h
PR fusionados (30 d)
28

Descripción

Currently, all subclasses of SimpleTypeSchema implement the format keyword of a Json Schema using a JsonValueFormat. But, according to the specification (http://json-schema.org/latest/json-schema-validation.html#anchor106), which is also helpfully copied into ValueTypeSchema:

> Additional custom formats MAY be created.

Since JsonValueFormat is an enum this is impossible. It would be very useful, especially on StringSchema, to allow custom formats.

It would be great if JsonValueFormat could be replaced with a String, or a normal class with maybe default static implementations.

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.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.