FasterXML / FasterXML/jackson-databind

Allow custom formats in JSON Schemas

Đang mở
#757 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
3.x
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.