Generate dgs.codegen.typemappings for shared-schema libraries
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- kotlin
- 領域
- build-system
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Kotlin
- スター
- 220
- フォーク
- 123
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Netflix/dgs-codegen のほかの issue
-
Integer default values on `Float` input fields generate code that does not compile (Java and Kotlin)対応中かも @0z5a が 8 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
Netflix/dgs-codegen#1015 ·
メンテナーはふだん 1 日以内に返信
-
Object literal default value on a custom scalar fails with NoSuchElementException対応中かも @nboisnea が 48 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Netflix/dgs-codegen#982 ·
メンテナーはふだん 1 日以内に返信
-
HV000271: Using @Valid on a container (java.util.List) is deprecated. You should apply the annotation on the type argument(s).対応中かも @jiholee17 が 72 日前に担当しました。 オープンenhancement
Netflix/dgs-codegen#954 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Support Immutable java Data Types再び着手できるかも @jiholee17 が 183 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
Netflix/dgs-codegen#944 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Java codegen: generate sealed interface for GraphQL interfaces/unions and record for implementing types再び着手できるかも @jiholee17 が 233 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
Netflix/dgs-codegen#923 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
Netflix/dgs-codegen の issue をすべて見る
似ている issue
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getsotto/sotto-authenticator#68 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 4 日以内に返信
-
mobile prio:low
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
digitalfabrik/entitlementcard#3324 ·
メンテナーはふだん 2 日以内に返信
-
Contributions are welcome Type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
owncloud/android#5065 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
sameerasw/essentials#1913 ·
メンテナーはふだん 1 日以内に返信