Settings Schema Validator
Component Detail
Infrastructure
low complexity
backend
0
Dependencies
0
Dependents
3
Entities
0
Integrations
Description
Infrastructure utility that validates organization feature toggle payloads against a versioned JSON schema before persistence. Prevents invalid JSONB configurations from being stored in the organizations table and returns structured validation errors to the admin panel.
settings-schema-validator
Responsibilities
- Validate feature toggle JSONB against the known settings schema
- Return structured field-level validation errors
- Support schema versioning for backwards-compatible settings evolution
Interfaces
validateSettings(payload, schemaVersion)
getValidationErrors(payload)
getSupportedSchemaVersion()
migrateSettings(oldPayload, targetVersion)
Related Data Entities (3)
Data entities managed by this component