The complete set of known IBridgeProviderFeatures keys (see the generated
MJAIBridgeProviderEntity_IBridgeProviderFeatures interface and
metadata/entities/JSONType-interfaces/IBridgeProviderFeatures.ts). SupportedFeatures is a
flat object of optional booleans, so the validation is: every present key must be in this set
and every value must be a boolean. Keeping the list here (rather than reflecting off a runtime
value) makes the validator a PURE, dependency-free, easily-unit-tested function and gives a
friendly "unknown feature flag" message that a free-form additionalProperties:false schema
would not.
The complete set of known
IBridgeProviderFeatureskeys (see the generatedMJAIBridgeProviderEntity_IBridgeProviderFeaturesinterface andmetadata/entities/JSONType-interfaces/IBridgeProviderFeatures.ts).SupportedFeaturesis a flat object of optional booleans, so the validation is: every present key must be in this set and every value must be a boolean. Keeping the list here (rather than reflecting off a runtime value) makes the validator a PURE, dependency-free, easily-unit-tested function and gives a friendly "unknown feature flag" message that a free-formadditionalProperties:falseschema would not.