class Amber::Schema::Registry

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.cr

Class Method Summary

Class Method Detail

def self.clear : Nil #

[View source]
def self.register_request(controller : String, action : String, schema : T.class) : Bool forall T #

[View source]
def self.register_response(controller : String, action : String, schema : T.class, status : Int32, description : String) : Bool forall T #

[View source]
def self.request_schema(controller : String, action : String) : Entry | Nil #

[View source]
def self.request_schemas : Hash(Key, Entry) #

[View source]
def self.response_schema(controller : String, action : String) : ResponseEntry | Nil #

[View source]
def self.response_schemas : Hash(Key, ResponseEntry) #

[View source]