@@ -16,10 +16,13 @@ public class OpenApiTypeMapperTests
1616        { 
1717            new  object [ ]  {  typeof ( int ) ,  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int32"  }  } , 
1818            new  object [ ]  {  typeof ( decimal ) ,  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "double"  }  } , 
19+             new  object [ ]  {  typeof ( decimal ? ) ,  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "double" ,  Nullable  =  true  }  } , 
1920            new  object [ ]  {  typeof ( bool ? ) ,  new  OpenApiSchema  {  Type  =  "boolean" ,  Nullable  =  true  }  } , 
2021            new  object [ ]  {  typeof ( Guid ) ,  new  OpenApiSchema  {  Type  =  "string" ,  Format  =  "uuid"  }  } , 
22+             new  object [ ]  {  typeof ( Guid ? ) ,  new  OpenApiSchema  {  Type  =  "string" ,  Format  =  "uuid" ,  Nullable  =  true  }  } , 
2123            new  object [ ]  {  typeof ( uint ) ,  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int32"  }  } , 
2224            new  object [ ]  {  typeof ( long ) ,  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int64"  }  } , 
25+             new  object [ ]  {  typeof ( long ? ) ,  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int64" ,  Nullable  =  true  }  } , 
2326            new  object [ ]  {  typeof ( ulong ) ,  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int64"  }  } , 
2427            new  object [ ]  {  typeof ( string ) ,  new  OpenApiSchema  {  Type  =  "string"  }  } , 
2528            new  object [ ]  {  typeof ( double ) ,  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "double"  }  } , 
@@ -35,11 +38,15 @@ public class OpenApiTypeMapperTests
3538
3639        public  static IEnumerable < object [ ] >  OpenApiDataTypes  =>  new  List < object [ ] > 
3740        { 
38-             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int32" } ,  typeof ( int )  } , 
41+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int32" ,  Nullable  =  false } ,  typeof ( int )  } , 
42+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int32" ,  Nullable  =  true } ,  typeof ( int ? )  } , 
43+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int64" ,  Nullable  =  false } ,  typeof ( long )  } , 
44+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "int64" ,  Nullable  =  true } ,  typeof ( long ? )  } , 
3945            new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "decimal" } ,  typeof ( decimal )  } , 
46+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "integer" ,  Format  =  null ,  Nullable  =  false } ,  typeof ( long )  } , 
47+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "integer" ,  Format  =  null ,  Nullable  =  true } ,  typeof ( long ? )  } , 
4048            new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  null ,  Nullable  =  false } ,  typeof ( double )  } , 
41-             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  null ,  Nullable  =  false } ,  typeof ( int )  } , 
42-             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  null ,  Nullable  =  true } ,  typeof ( int ? )  } , 
49+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  null ,  Nullable  =  true } ,  typeof ( double ? )  } , 
4350            new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "decimal" ,  Nullable  =  true } ,  typeof ( decimal ? )  } , 
4451            new  object [ ]  {  new  OpenApiSchema  {  Type  =  "number" ,  Format  =  "double" ,  Nullable  =  true } ,  typeof ( double ? )  } , 
4552            new  object [ ]  {  new  OpenApiSchema  {  Type  =  "string" ,  Format  =  "date-time" ,  Nullable  =  true } ,  typeof ( DateTimeOffset ? )  } , 
0 commit comments