api: the OpenAPI document allows null on_value and off_value for a flag, which the API refuses
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the FeatureFlagCreate and FeatureFlagUpdate schemas in docs/api/openapi-v1.full.json and docs/api/openapi-v1.stable.json, where on_value and off_value lack a type. Check the API's Python validation that returns null_not_allowed, and follow the #954 stability row as the format for any new entry. Done means both properties exclude null in the served document, a test pins that, and both snapshots are regenerated. The fix needs serial merge ordering and a fuzz run before merge, so confirm with maintainers first.
索引モデルが issue の本文から書いたものです。
説明
The served OpenAPI document leaves on_value and off_value on FeatureFlagCreate and FeatureFlagUpdate without a type, so it allows any JSON value, null included. The API refuses null for them: in a measured run, 135 of 150 flag creates that the document allows answered 422 with null_not_allowed.
Both snapshots (docs/api/openapi-v1.full.json and docs/api/openapi-v1.stable.json) carry the untyped properties since #1514, which is not yet in a release. The next release would publish them in the stable document; fixing them after that needs a stability row (the #954 row is the shape), with no behaviour change.
Expected
The document describes exactly what the API accepts for on_value and off_value, and a test pins it.
Notes
The fix changes the request side of the served document, so it is its own pull request, regenerates both snapshots (merged serially with the other snapshot pull requests) and dispatches the API fuzz run before merge.
Priority
LOW.
- 主要言語
- Python
- スター
- 0
- フォーク
- 4
- 平均マージ
- 5時間 19分
- マージ済み PR(30日)
- 503
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Controlvar/controlvar のほかの issue
-
Dashboard: the sequential panel's "Ready to stop" banner shows no sample-ratio-mismatch cautionオープンbug post-launch
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Controlvar/controlvar#1737 ·
メンテナーはふだん 1 日以内に返信
-
fix(api): the feature-flag list has no defined order across pages対応中かも @amarkanday が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Controlvar/controlvar#1612 ·
メンテナーはふだん 1 日以内に返信
-
bug post-launch
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Controlvar/controlvar#1562 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
Controlvar/controlvar#1447 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Experiment setup: emptying a traffic share box and typing a number shows a leading zero ("034")オープンbug post-launch
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Controlvar/controlvar#1428 ·
メンテナーはふだん 1 日以内に返信
Controlvar/controlvar の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
FinanceFlash/unvibecode#509 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
FAIRmat-NFDI/nomad-distro-dev#161 ·
-
bug v2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
modelcontextprotocol/python-sdk#3821 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug severity:low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
Log-odds calibration uses upper middle score instead of median for even candidate sets対応中かも @flysheep-ai が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信