openapi-processor / openapi-processor/openapi-processor-base

use x-tension value in annotation mapping

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

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

enhancement
主要言語
Kotlin
スター
2
フォーク
4
平均マージ
4日 55分
マージ済み PR(30日)
9

説明

Having an x-tension property with value

    Foo:
      type: object
      properties:
        bar:
          type: integer
          x-foobar: raboof

it would probably be nice if I could pass the value to the annotation.

how wold the mapping look like?

  extensions:
    # the mapping expects the source type to be a `string`. It would need 
    # - an identifier to represent the x-tension value and
    # - an identifier as placeholder for the annotation parameter

    # placeholder could look like this
    x-foobar: ?? @ io.openapiprocessor.annotation.Foobar(value = {value})
 
    # value source type could be this?
    x-foobar: {value} @ io.openapiprocessor.annotation.Foobar(value = {value})

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず、issue に示されている拡張機能のマッピング構文を確認し、x-foobar アノテーションが現在どのように生成されているかを追跡します。x-tension の値とアノテーションパラメーターのプレースホルダーをどのように表現すべきかを判断し、その値が生成されたアノテーションに到達することを示すマッピング動作とカバレッジを定義します。

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

評価

技術スタック
kotlin
領域
backend-api-design, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

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

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