FasterXML / FasterXML/jackson-databind
Allow custom formats in JSON Schemas
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 1.5k
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 28
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.