class
AzuCLI::OpenAPI::SchemaMapper
- AzuCLI::OpenAPI::SchemaMapper
- Reference
- Object
Overview
Maps OpenAPI types to Crystal types and vice versa
Defined in:
azu_cli/openapi/schema_mapper.crClass Method Summary
-
.extract_array_item_type(crystal_type : String) : String | Nil
Get array item type from Crystal array type
-
.nullable?(crystal_type : String) : Bool
Check if type is nullable
-
.to_cql_type(crystal_type : String) : String
Get CQL column type from Crystal type
-
.to_crystal_type(schema : Schema) : String
Map OpenAPI type to Crystal type
-
.to_openapi_type(crystal_type : String) : Tuple(String, String | Nil)
Map Crystal type to OpenAPI type
Class Method Detail
def self.extract_array_item_type(crystal_type : String) : String | Nil
#
Get array item type from Crystal array type
def self.to_openapi_type(crystal_type : String) : Tuple(String, String | Nil)
#
Map Crystal type to OpenAPI type