alxjrvs / alxjrvs/vellum

Validator: cross-check conditions.feature keys against featureConditions catalogue

オープン
#30 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
0
フォーク
0
平均マージ
7時間 18分
マージ済み PR(30日)
1

説明

Surfaced in PR #29 review. `parseCharacter` validates `conditions.feature` (a `Record`) and `featureConditions` (a `string[]` catalogue) independently. A hand-crafted JSON can have keys in `conditions.feature` that aren't declared in `featureConditions` — the import succeeds, but the eventual feature-condition toggle UI will treat the catalogue as truth and silently drop the orphaned booleans.

Once the feature-conditions UI lands, the validator should reject any `conditions.feature` key not present in `featureConditions`. Deferred from #5 because no UI consumes the relationship yet.

Acceptance: parseCharacter rejects with a clear error when `Object.keys(conditions.feature)` contains an id not in `featureConditions`.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。