module ActionController::OpenAPI

Extended Modules

Defined in:

action-controller/open_api.cr
action-controller/open_api/components.cr

Constant Summary

SAVE_DESCRIPTIONS_OF = {"ActionController::Base", "JSON::Serializable", "YAML::Serializable"}

Instance Method Summary

Instance Method Detail

def build_response(responders, is_array, klass_name, response_code) #

[View source]
def extract_all_types(type_collection, current_list) #

[View source]
def extract_route_descriptions #

[View source]
def find_matching(klass_descriptions : Hash(String, KlassDoc), controller : String, all_filters, all_exceptions, route_filters : Array(String), route_errors : Array(String)) : Tuple(KlassDoc | Nil, Array(String), Array(String)) #

[View source]
def generate_open_api_docs(title : String, version : String, **info) #

[View source]
def generate_openapi_doc(title : String, version : String, info, descriptions, routes, exceptions, filters, response_types, accepts, responders) #

[View source]
def normalise_schema_reference(class_name) #

[View source]