Introduce custom formatter for json property names
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu tại src/main/java/io/vertx/codegen/generators/dataobjecthelper/DataObjectHelperGen.java, quanh vị trí chọn formatter được tham chiếu, sau đó kiểm tra cách xử lý classloader hiện có của loadJsonMappers. Xác định cách tải một formatter từ compilation classpath và xác minh kịch bản hai dự án được mô tả trong issue. Hoàn thành khi một @DataObject có thể ánh xạ endpointConfigs tới endpoints để chuyển đổi JSON theo cả hai chiều.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the feature
Introduce custom formatter for json property names
Use cases
I have a POJO which is annotated with @DataObject (vertx-codegen) to convert it into JSON and back. This POJO has an attribute called "endpointConfigs", but in the JSON I want to call it "endpoints". I saw that @DataObject has a property called "jsonPropertyNameFormatter", which I think is exactly what I need.
Contribution
I would try to implement this feature. @vietj gave me already some entry points in discord, which I will add to this description then we have everything on one page.
Place to choose the formatter [1].
Discord messages
- ideally we should be able to support loading this class from a classloader
- I think the most difficult issue is using the correct classloader for this
- Introducing a new classloader and configure the classpath in codegen config is the wrong direction, because it adds more complexcity.
- if you look at loadJsonMappers we do use getClass().getClassLoader() so perhaps it should simply work with this
- you need two projects one jar with the Case one project that use it from compilation classpath (I hope I can solve it more elegant with just in time compilation)
- Ngôn ngữ chính
- Java
- Star
- 111
- Fork
- 88
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-vertx/vertx-codegen
-
Protobuf enum supportĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
eclipse-vertx/vertx-codegen#361 ·
-
help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
eclipse-vertx/vertx-codegen#340 · 11 bình luận · 2 reaction ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
eclipse-vertx/vertx-codegen#320 · 4 bình luận ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
eclipse-vertx/vertx-codegen#319 · 1 bình luận · 1 reaction ·
-
JPMS json mapperĐang mởbug help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
eclipse-vertx/vertx-codegen#315 ·
Tất cả issue của eclipse-vertx/vertx-codegen
Issue tương tự
-
jules
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
open-learning-exchange/myplanet#18199 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Authorization 'Artifacts' is shown under category Run instead of Job in Authorization matrixĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Scheme-less stream URLs throw NullPointerException instead of URISyntaxExceptionCó thể đã có người làm @blihio đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pedroSG94/RootEncoder#2218 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/rocketmq-dashboard#6872 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ADORSYS-GIS/token-status-link#168 ·
Maintainer thường phản hồi trong vòng 2 ngày