FasterXML / FasterXML/jackson-databind
Allow custom formats in JSON Schemas
- Ngôn ngữ chính
- Java
- Star
- 3.7k
- Fork
- 1.5k
- Merge trung bình
- 3 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 28
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.