class
Amber::Schema::Registry
- Amber::Schema::Registry
- Reference
- Object
Overview
Runtime registry produced by the controller schema macros. The entries are immutable schema classes; only request-local Definition instances contain mutable validation state.
Defined in:
amber/schema/registry.crClass Method Summary
- .clear : Nil
- .register_request(controller : String, action : String, schema : T.class) : Bool forall T
- .register_response(controller : String, action : String, schema : T.class, status : Int32, description : String) : Bool forall T
- .request_schema(controller : String, action : String) : Entry | Nil
- .request_schemas : Hash(Key, Entry)
- .response_schema(controller : String, action : String) : ResponseEntry | Nil
- .response_schemas : Hash(Key, ResponseEntry)
Class Method Detail
def self.register_response(controller : String, action : String, schema : T.class, status : Int32, description : String) : Bool forall T
#