FasterXML / FasterXML/jackson-module-jsonSchema

Support polymorphism on schema generation

Đang mở
#5 14 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
387
Fork
136
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

(moved from: https://github.com/FasterXML/jackson-databind/issues/41 )

---

t would be nice to support polymorphism on schema generation.
Currently, the generated schema doesn't provides information on subtypes with the above case .

```
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type")
@JsonSubTypes({
@Type(value = subtypeA.class, name = "A"),
@Type(value = subtypeB.class, name = "B"),
@Type(value = subtypeC.class, name = "C")
})
public abstract class ParentType { }
```

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.