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)
Delegate array-like access to validated data first, then raw params
- #[]?(key : String | Symbol)
-
#has_key?(key : String | Symbol) : Bool
Check if key exists in either validated data or raw params
- #raw_params : Amber::Router::Params
-
#to_h
Convert to hash combining validated and raw data
-
#to_unsafe_h
Access to raw unvalidated params
- #validated_data : Hash(String, JSON::Any)
-
#validation(&)
Provide access to validation methods for migration
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