Exemplo n.º 1
0
 private string GetSwaggerItemsType(ColumnDescription columnDescription)
 {
     if (columnDescription.CassandraType.ToLowerInvariant() == "list" && !columnDescription.IsUdt())
     {
         return(columnDescription.CSharpType.Replace("List<", "").Replace(">", ""));
     }
     return(null);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        private string GetSwaggerRef(ColumnDescription columnDescription)
        {
            if (columnDescription.CassandraType == "Udt")
            {
                this.AddSwaggerUdtIfNeeded(columnDescription);
                return(columnDescription.IsUdt() ? $"#/definitions/{columnDescription.CSharpType}" : columnDescription.CSharpType);
            }

            return(null);
        }