Raxol.Config.Schema (Raxol v2.0.1)
View SourceConfiguration schema definitions and validation.
Defines the structure, types, and constraints for all configuration options in Raxol, providing compile-time and runtime validation.
Summary
Functions
Generates documentation for configuration options.
Gets the schema for a specific configuration path.
Returns the complete configuration schema.
Validates a configuration value against a schema.
Validates an entire configuration map.
Types
@type constraint() :: {:min, number()} | {:max, number()} | {:min_length, non_neg_integer()} | {:max_length, non_neg_integer()} | {:format, Regex.t()} | {:custom, fun()}
@type field_schema() :: %{ type: schema_type(), required: boolean(), default: term(), constraints: [constraint()], description: String.t(), deprecated: boolean() }
@type schema_type() :: :string | :integer | :float | :boolean | :atom | {:list, schema_type()} | {:map, schema_type()} | {:enum, [term()]} | {:struct, module()} | {:one_of, [schema_type()]}
Functions
Generates documentation for configuration options.
Gets the schema for a specific configuration path.
Returns the complete configuration schema.
Validates a configuration value against a schema.
Validates an entire configuration map.