Generate dgs.codegen.typemappings for shared-schema libraries
Maintainer thường phản hồi trong vòng 1 ngày
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
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- kotlin
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start by reading the Gradle generateJava configuration and the existing reader for META-INF/dgs.codegen.typemappings added for dependency JARs in PR #735. Define how exported mappings are selected and whether dependency mappings are included, then trace resource processing and JAR packaging. Done means opt-in generation produces a deterministic, tracked resource while manual resources still work when disabled and existing consumers need no configuration changes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Shared-schema library maintainers must currently define type mappings twice: in generateJava.typeMapping for their own code generation and in META-INF/dgs.codegen.typemappings for downstream consumers. Adding or changing a mapping requires updating both copies, which can drift.
PR #735 added support for reading this resource from dependency JARs. Generating it was discussed there and requested again in https://github.com/Netflix/dgs-codegen/pull/735#issuecomment-2368474922, but remains unimplemented.
Please add an opt-in Gradle capability to generate the mapping resource and package it in the library JAR. For example, this configuration:
generateJava {
typeMapping = [BigDecimal: 'java.math.BigDecimal']
}
could produce META-INF/dgs.codegen.typemappings containing:
BigDecimal=java.math.BigDecimal
The generated resource should be wired into resource processing and JAR packaging, with deterministic output and Gradle input/output tracking. Existing manually maintained resources should continue to work when generation is disabled.
Exported mappings can differ from the mappings used to generate a library's own code, so the feature should define how maintainers select or override the exported set. It should also define whether dependency mappings are exported, rather than implicitly republishing every inherited mapping. Consumers should continue using the existing reader without configuration changes.
- Ngôn ngữ chính
- Kotlin
- Star
- 220
- Fork
- 123
- Merge trung bình
- 1 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 23
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 Netflix/dgs-codegen
-
Integer default values on `Float` input fields generate code that does not compile (Java and Kotlin)Có thể đã có người làm @0z5a đã nhận 9 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Netflix/dgs-codegen#1015 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Object literal default value on a custom scalar fails with NoSuchElementExceptionCó thể đã có người làm @nboisnea đã nhận 49 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Netflix/dgs-codegen#982 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
HV000271: Using @Valid on a container (java.util.List) is deprecated. You should apply the annotation on the type argument(s).Có thể đã có người làm @jiholee17 đã nhận 72 ngày trước. Đang mởenhancement
Netflix/dgs-codegen#954 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support Immutable java Data TypesCó thể làm lại được @jiholee17 đã nhận 183 ngày trước và không có pull request nào đang mở. Đang mởenhancement
Netflix/dgs-codegen#944 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Java codegen: generate sealed interface for GraphQL interfaces/unions and record for implementing typesCó thể làm lại được @jiholee17 đã nhận 233 ngày trước và không có pull request nào đang mở. Đang mởenhancement
Netflix/dgs-codegen#923 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Netflix/dgs-codegen
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
PranshulGG/WeatherMaster#1266 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsotto/sotto-authenticator#68 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 4 ngày
-
mobile prio:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
digitalfabrik/entitlementcard#3324 ·
Maintainer thường phản hồi trong vòng 2 ngày