Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Non-compiling code is generated for go-clients for deep object query-parameters

オープン
#333 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go, kotlin
領域
tooling

調査の方向性

attribute-filtering.ramlから始め、issueに示されている生成されたGoクライアントメソッドを再現します。深くネストされたクエリパラメーター名を関数名とフィールド名に変換するGoクライアント生成パスを追跡し、出力がコンパイルでき、filter[attributes]用の有効なアクセサーを持つことを確認します。

索引モデルが issue の本文から書いたものです。

説明

Recently there was a deep object query-parameter added to the commercetools-api-reference.

See filter[attributes] in file attribute-filtering.raml -> https://github.com/commercetools/commercetools-api-reference/blob/main/api-specs/api/traits/attribute-filtering.raml

This feature cannot be handled by rmf-codegen for go clients. It generates non-compiling code. Filter[attributes] is not a valid function name.

func (rb *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestMethodGet) Filter[attributes](v []string) *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestMethodGet { if (rb.params == nil) { rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestMethodGetInput{} } rb.params.Filter[attributes] = v return rb }

主要言語
Kotlin
スター
16
フォーク
7
平均マージ
2日 8時間
マージ済み PR(30日)
4

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

commercetools/rmf-codegen のほかの issue

commercetools/rmf-codegen の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。