private string GetSwaggerItemsType(ColumnDescription columnDescription) { if (columnDescription.CassandraType.ToLowerInvariant() == "list" && !columnDescription.IsUdt()) { return(columnDescription.CSharpType.Replace("List<", "").Replace(">", "")); } return(null); }
private string GetSwaggerItemsRef(ColumnDescription columnDescription) { if (columnDescription.CassandraType.ToLowerInvariant() == "list" && columnDescription.IsUdt()) { var r = columnDescription.CSharpType.Replace("List<", "").Replace(">", ""); this.AddSwaggerUdtIfNeeded(columnDescription); return($"#/definitions/{r}"); } return(null); }
private string GetSwaggerRef(ColumnDescription columnDescription) { if (columnDescription.CassandraType == "Udt") { this.AddSwaggerUdtIfNeeded(columnDescription); return(columnDescription.IsUdt() ? $"#/definitions/{columnDescription.CSharpType}" : columnDescription.CSharpType); } return(null); }