Raxol.Terminal.Config.Validation (Raxol v2.0.1)
View SourceValidation logic for terminal configuration.
Ensures that configuration values are valid according to their schema.
Summary
Functions
Validates a complete terminal configuration.
Validates configuration updates against the schema.
Validates a specific configuration value against its schema.
Functions
Validates a complete terminal configuration.
Parameters
config- The configuration to validate
Returns
{:ok, validated_config} or {:error, reason}
Validates configuration updates against the schema.
Parameters
config- The current configurationupdates- The updates to validate
Returns
:ok or {:error, reason}
Validates a specific configuration value against its schema.
Parameters
path- A list of keys representing the path to the configuration valuevalue- The value to validate
Returns
{:ok, validated_value} or {:error, reason}