accounts/{account_id}/rules/lists/{list_id}/items body not supported
まだ誰も着手していません。
評価
調査の方向性
まず、accounts/{account_id}/rules/lists/{list_id}/items の OpenAPI 定義と、再現手順で使用されている生成済み Python クライアントメソッドを比較します。requestBody が openapi.yaml にないのか、生成済みサポートにないのかを確認し、その後、delete 呼び出しが示されている body 形式を受け付けることを検証します。
索引モデルが issue の本文から書いたものです。
説明
Confirm this is a Python library issue and not an underlying Cloudflare API issue.
- This is an issue with the Python library
Describe the bug
hi
The openapi defintiion for accounts/{account_id}/rules/lists/{list_id}/items has support for a requestBody but the library (python one, but also go, curl...) does not reflect this (and does not support it).
This is might be an issue in the openapi.yaml definition.
tx
To Reproduce
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
item = client.rules.lists.items.delete(
list_id="2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body=[{"id":"1234567890abcd"}]
)
Code snippets
OS
macOS
Python version
3.9.0
Library version
v4.0.0
- 主要言語
- Python
- スター
- 509
- フォーク
- 150
- 平均マージ
- 3時間 15分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudflare/cloudflare-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
cloudflare/cloudflare-python#2747 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
cloudflare/cloudflare-python#2718 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
cloudflare/cloudflare-python#2692 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
cloudflare/cloudflare-python#2679 · コメント 4 件 · リアクション 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
cloudflare/cloudflare-python#2745 · コメント 1 件 ·
cloudflare/cloudflare-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100