cloudflare / cloudflare/cloudflare-python

accounts/{account_id}/rules/lists/{list_id}/items body not supported

Offen
#2,665 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
506
Forks
148
Ø Merge
3 Std. 15 Min.
Gemergte PRs (30 T.)
1

Beschreibung

### Confirm this is a Python library issue and not an underlying Cloudflare API issue.

- [x] 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

```Python

```

### OS

macOS

### Python version

3.9.0

### Library version

v4.0.0

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die OpenAPI-Definition für accounts/{account_id}/rules/lists/{list_id}/items mit der in der Reproduktion verwendeten generierten Python-Client-Methode zu vergleichen. Ermittle, ob requestBody in openapi.yaml oder in der generierten Unterstützung fehlt, und überprüfe anschließend, ob der Delete-Aufruf das gezeigte Body-Format akzeptiert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
api
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.