adobe / adobe/aio-cli-plugin-runtime
`aio rt api create` allows relpath without a leading slash
- 主要言語
- JavaScript
- スター
- 21
- フォーク
- 33
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Currently users can run `aio rt api create basepath relpath ...` and it will succeed, producing an endpoint like https://adobeioruntime.net/apis/namespace/basepathrelpath
On the other hand, `wsk` requires that relpath begins with a `/`, to separate the basepath and relpath, and if users don't include it, the command produces an error:
```
error: Unable to parse api command arguments: 'relpath' must begin with '/'.
```
We should update `aio rt api create` to match this `wsk` behavior
コントリビューションガイド
調査の方向性
`aio rt api create` コマンドの実装と引数のバリデーションから始め、`basepath` と `relpath` の処理を、記載されている `wsk` の動作と比較します。先頭のスラッシュなしでコマンドを再現し、その後、補完でスラッシュを必須にし、無効な形式が結合されたエンドポイントを作成するのではなくエラーになることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 50/100