Augment parameter schema with type's schema when no type given#2596
Augment parameter schema with type's schema when no type given#2596Pepo48 wants to merge 3 commits into
Conversation
|
@MikeEdgar I also wondered about this earlier and at least based on what I see from my research is that it doesn't affect schema properties. The POJO property pipeline handles this correctly via The bug is in But, please, recheck this thoroughly, just to be on the safe side. 😊 |
|
@Pepo48 pardon the delay, I am still thinking through this one. Your change works well for the narrow set of attributes in the new logic (type, enumeration, format), but really the issue impacts any type that is currently not being introspected. Granted, this can easily be worked around by adding |
… is set * merge type, enum and format from the Java field type into the existing partial schema when it has no type set Closes: smallrye#2595 Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
… is set * merge type, enum and format from the Java field type into the existing partial schema when it has no type set Closes: smallrye#2595 Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
|
Hey @MikeEdgar, I found some time to look and it again. I verified one by one with all 7 types (enum, Integer, Double, Long, Boolean, LocalDate, UUID) that they all lose their type info when I tried to replace the manual property merge with a simpler approach. For ref types (UUID, LocalDate, enum), the Is this roughly roughly the approach you had in mind? (I pushed the changes as a separate commit for now) |
Signed-off-by: Michael Edgar <michael@xlate.io>
|
@Pepo48 I pushed a commit with some more test scenarios in the same test case and handling for multi-variant parameter content (i.e., >1 schema per parameter). |
|



… is set
Closes: #2595