allocation エンドポイントでのゼロおよび負の step 値の拒否
/allocation API と /allocation/summary APIstep が 0 の場合はウィンドウのループが進まず、負の step の場合はウィンドウの終端から遠ざかるため、どちらもループが無限に続く可能性がありました。現在は、accumulate=hour|day|week|month|quarter によって以前は step が置き換えられていた場合でも、いずれかの値を指定したリクエストには HTTP 400 が返されます。正の step、step の省略、および記載された accumulate キーワードは、これまでどおり動作します。
原文を表示
* fix(costmodel): reject a zero or negative step in the allocation API by @BahaaMattar in https://github.com/opencost/opencost/pull/4225github.com/opencost/opencost/releases/tag/v1.121.5