bayesline.api.equity.RiskDatasetSettings#
- model RiskDatasetSettings#
Base settings for a risk dataset.
Two concrete variants subclass this:
DerivedRiskDatasetSettings(built on top of a reference dataset) andRootRiskDatasetSettings(assembled directly from upload sources). Subclasses overridekindwith aLiteralfor polymorphic deserialization via the discriminated unionAnyRiskDatasetSettings.The base is registered alongside both variants so the registry’s umbrella view
registry[RiskDatasetSettings]reads/lists every variant at once (the reader is subclass-aware), whileregistry[RootRiskDatasetSettings]/registry[DerivedRiskDatasetSettings]scope to a single variant. Writes must route through the concrete-typed registry so the matching validator — and its dataset-source menu — runs.