@@ -14,22 +14,22 @@ public class OpenApiTypeMapperTests
1414    { 
1515        public  static IEnumerable < object [ ] >  PrimitiveTypeData  =>  new  List < object [ ] > 
1616        { 
17-             new  object [ ]  {  typeof ( int ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int32"  }  } , 
17+             new  object [ ]  {  typeof ( int ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int32"  }  } , 
1818            new  object [ ]  {  typeof ( decimal ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "double"  }  } , 
1919            new  object [ ]  {  typeof ( decimal ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "double" ,  Nullable  =  true  }  } , 
2020            new  object [ ]  {  typeof ( bool ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Boolean ,  Nullable  =  true  }  } , 
2121            new  object [ ]  {  typeof ( Guid ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . String ,  Format  =  "uuid"  }  } , 
2222            new  object [ ]  {  typeof ( Guid ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . String ,  Format  =  "uuid" ,  Nullable  =  true  }  } , 
23-             new  object [ ]  {  typeof ( uint ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int32"  }  } , 
24-             new  object [ ]  {  typeof ( long ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int64"  }  } , 
25-             new  object [ ]  {  typeof ( long ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int64" ,  Nullable  =  true  }  } , 
26-             new  object [ ]  {  typeof ( ulong ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int64"  }  } , 
23+             new  object [ ]  {  typeof ( uint ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int32"  }  } , 
24+             new  object [ ]  {  typeof ( long ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int64"  }  } , 
25+             new  object [ ]  {  typeof ( long ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int64" ,  Nullable  =  true  }  } , 
26+             new  object [ ]  {  typeof ( ulong ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int64"  }  } , 
2727            new  object [ ]  {  typeof ( string ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . String  }  } , 
2828            new  object [ ]  {  typeof ( double ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "double"  }  } , 
2929            new  object [ ]  {  typeof ( float ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "float" ,  Nullable  =  true  }  } , 
3030            new  object [ ]  {  typeof ( byte ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . String ,  Format  =  "byte" ,  Nullable  =  true  }  } , 
31-             new  object [ ]  {  typeof ( int ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int32" ,  Nullable  =  true  }  } , 
32-             new  object [ ]  {  typeof ( uint ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int32" ,  Nullable  =  true  }  } , 
31+             new  object [ ]  {  typeof ( int ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int32" ,  Nullable  =  true  }  } , 
32+             new  object [ ]  {  typeof ( uint ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int32" ,  Nullable  =  true  }  } , 
3333            new  object [ ]  {  typeof ( DateTimeOffset ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . String ,  Format  =  "date-time" ,  Nullable  =  true  }  } , 
3434            new  object [ ]  {  typeof ( double ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "double" ,  Nullable  =  true  }  } , 
3535            new  object [ ]  {  typeof ( char ? ) ,  new  OpenApiSchema  {  Type  =  JsonSchemaType . String ,  Nullable  =  true  }  } , 
@@ -38,10 +38,10 @@ public class OpenApiTypeMapperTests
3838
3939        public  static IEnumerable < object [ ] >  OpenApiDataTypes  =>  new  List < object [ ] > 
4040        { 
41-             new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int32" ,  Nullable  =  false } ,  typeof ( int )  } , 
42-             new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int32" ,  Nullable  =  true } ,  typeof ( int ? )  } , 
43-             new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int64" ,  Nullable  =  false } ,  typeof ( long )  } , 
44-             new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "int64" ,  Nullable  =  true } ,  typeof ( long ? )  } , 
41+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int32" ,  Nullable  =  false } ,  typeof ( int )  } , 
42+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int32" ,  Nullable  =  true } ,  typeof ( int ? )  } , 
43+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int64" ,  Nullable  =  false } ,  typeof ( long )  } , 
44+             new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  "int64" ,  Nullable  =  true } ,  typeof ( long ? )  } , 
4545            new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Number ,  Format  =  "decimal" } ,  typeof ( decimal )  } , 
4646            new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  null ,  Nullable  =  false } ,  typeof ( long )  } , 
4747            new  object [ ]  {  new  OpenApiSchema  {  Type  =  JsonSchemaType . Integer ,  Format  =  null ,  Nullable  =  true } ,  typeof ( long ? )  } , 
0 commit comments