class

PointClickEngine::Core::Validation::ValidationContext

Inherits Reference < Object

Context information for validation operations

The ValidationContext provides shared state and configuration that validators can use to make decisions and access resources.

Constructors

new(config_path : String)
Source

Instance methods

base_dir
Source
base_dir=(base_dir : String)
Source
cache

Cached data that validators can share

Source
cache=(cache : Hash(String, String | Int32 | Bool | Array(String)))

Cached data that validators can share

Source
cache_get(key : String, default = nil)

Retrieves a cached value

Source
cache_has?(key : String) : Bool

Checks if a key exists in cache

Source
cache_set(key : String, value : String | Int32 | Bool | Array(String))

Caches a value for sharing between validators

Source
config_path
Source
config_path=(config_path : String)
Source
development_mode
Source
development_mode=(development_mode : Bool)
Source
file_exists?(path : String) : Bool

Checks if a file exists relative to base directory

Source
file_size(path : String) : Int64 | Nil

Gets file size for a path relative to base directory

Source
include_performance_checks
Source
include_performance_checks=(include_performance_checks : Bool)
Source
include_security_checks
Source
include_security_checks=(include_security_checks : Bool)
Source
max_warnings
Source
max_warnings=(max_warnings : Int32)
Source
resolve_path(path : String) : String

Resolves a path relative to the configuration base directory

Source
skip_optional_checks
Source
skip_optional_checks=(skip_optional_checks : Bool)
Source
strict_mode
Source
strict_mode=(strict_mode : Bool)
Source
to_s(io : IO) : Nil

String representation

Source