class AzuCLI::OpenAPI::SchemaMapper

Overview

Maps OpenAPI types to Crystal types and vice versa

Defined in:

azu_cli/openapi/schema_mapper.cr

Class Method Summary

Class Method Detail

def self.extract_array_item_type(crystal_type : String) : String | Nil #

Get array item type from Crystal array type


[View source]
def self.nullable?(crystal_type : String) : Bool #

Check if type is nullable


[View source]
def self.to_cql_type(crystal_type : String) : String #

Get CQL column type from Crystal type


[View source]
def self.to_crystal_type(schema : Schema) : String #

Map OpenAPI type to Crystal type


[View source]
def self.to_openapi_type(crystal_type : String) : Tuple(String, String | Nil) #

Map Crystal type to OpenAPI type


[View source]