class
Amber::Controller::SchemaParamsWrapper
- Amber::Controller::SchemaParamsWrapper
- Reference
- Object
Overview
Wrapper class that provides backward compatibility between Schema API and the existing Amber::Validators::Params interface
Defined in:
amber/controller/schema_integration.crConstructors
Macro Summary
-
method_missing(call)
Forward missing methods to raw params for full compatibility
Instance Method Summary
-
#[](key : String | Symbol) : String
Delegate array-like access to validated data first, then raw params
- #[]?(key : String | Symbol) : String | Nil
-
#has_key?(key : String | Symbol) : Bool
Check if key exists in either validated data or raw params
- #raw_params : Amber::Router::Params
-
#to_h : Hash(String, String | Nil)
Convert to hash combining validated and raw data
-
#to_unsafe_h : Hash(String, String)
Access to raw unvalidated params
- #validated_data : Hash(String, JSON::Any)
-
#validation(&) : Amber::Validators::Params
Provide access to validation methods for migration
DEPRECATED Use Amber::Schema controller contracts; legacy params validation remains available for V2 migration compatibility
Constructor Detail
Macro Detail
Instance Method Detail
Delegate array-like access to validated data first, then raw params
Check if key exists in either validated data or raw params
Convert to hash combining validated and raw data
Provide access to validation methods for migration
DEPRECATED Use Amber::Schema controller contracts; legacy params validation remains available for V2 migration compatibility