class

AzuCLI::OpenAPI::SchemaMapper

Inherits Reference < Object

Maps OpenAPI types to Crystal types and vice versa

Class methods

extract_array_item_type(crystal_type : String) : String | Nil

Get array item type from Crystal array type

Source
nullable?(crystal_type : String) : Bool

Check if type is nullable

Source
to_cql_type(crystal_type : String) : String

Get CQL column type from Crystal type

Source
to_crystal_type(schema : Schema) : String

Map OpenAPI type to Crystal type

Source
to_openapi_type(crystal_type : String) : Tuple(String, String | Nil)

Map Crystal type to OpenAPI type

Source