Skip to content

Commit 341e05c

Browse files
committed
Examples and tests update to latest version
1 parent 2c4e37e commit 341e05c

File tree

32 files changed

+124
-42
lines changed

32 files changed

+124
-42
lines changed

Examples/Angular/ModelFromAssembly/ModelFromAssembly.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="5.2.0" />
9-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.2.0" />
8+
<PackageReference Include="KY.Generator" Version="5.3.0" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
1010
</ItemGroup>
1111

1212
</Project>

Examples/Angular/ModelFromAssembly/Output/another-type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Angular/ModelFromAssembly/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/models/weather-forecast.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/services/weather-forecast.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Angular/ServiceFromAspNetCoreAnnotation/ServiceFromAspNetCoreAnnotation.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="KY.Generator" Version="5.2.0" />
17-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.2.0" />
16+
<PackageReference Include="KY.Generator" Version="5.3.0" />
17+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
1818
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
1919
</ItemGroup>
2020

Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/connection-status.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/weather-forecast.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/services/weather-hub.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Angular/ServiceFromAspNetCoreSignalRHub/ServiceFromAspNetCoreSignalRHub.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="KY.Generator" Version="5.2.0" />
17-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.2.0" />
16+
<PackageReference Include="KY.Generator" Version="5.3.0" />
17+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
1818
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
1919
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
2020
</ItemGroup>

Examples/Reflection/ReflectionFromAttributes/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Reflection/ReflectionFromAttributes/ReflectionFromAttributes.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="5.2.0" />
9-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.2.0" />
8+
<PackageReference Include="KY.Generator" Version="5.3.0" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
1010
</ItemGroup>
1111

1212
</Project>

Examples/Reflection/ReflectionFromCore/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Reflection/ReflectionFromCore/ReflectionFromCore.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="5.2.0" />
9+
<PackageReference Include="KY.Generator" Version="5.3.0" />
1010
</ItemGroup>
1111

1212
</Project>

Examples/Reflection/ReflectionFromIndex/Output/another-type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Reflection/ReflectionFromIndex/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Reflection/ReflectionFromIndex/ReflectionFromIndex.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="5.2.0" />
9-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.2.0" />
8+
<PackageReference Include="KY.Generator" Version="5.3.0" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

Examples/Reflection/ReflectionFromMultipleAssemblies/MainAssembly/MainAssembly.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="5.2.0" />
9-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.2.0" />
8+
<PackageReference Include="KY.Generator" Version="5.3.0" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

Examples/Reflection/ReflectionFromMultipleAssemblies/MainAssembly/Output/second-type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Reflection/ReflectionFromMultipleAssemblies/MainAssembly/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Reflection/ReflectionFromStandard/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Reflection/ReflectionFromStandard/ReflectionFromStandard.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="5.2.0" />
8+
<PackageReference Include="KY.Generator" Version="5.3.0" />
99
</ItemGroup>
1010

1111
</Project>

Examples/Reflection/ReflectionIgnoreAttribute/Output/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Examples/Reflection/ReflectionIgnoreAttribute/ReflectionIgnoreAttribute.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="5.2.0" />
9-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.2.0" />
8+
<PackageReference Include="KY.Generator" Version="5.3.0" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
1010
</ItemGroup>
1111

1212
</Project>

Examples/Reflection/ReflectionX86/ReflectionX86.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator" Version="5.2.0" />
9+
<PackageReference Include="KY.Generator" Version="5.3.0" />
1010
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.0.0-rc.0" />
1111
</ItemGroup>
1212

Examples/Reflection/ReflectionX86/type-to-read.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.2.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/AnnotationsWithMultipleOutputs/AnnotationsWithMultipleOutputs.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="5.2.0" />
9-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.2.0" />
8+
<PackageReference Include="KY.Generator" Version="5.3.0" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
1010
</ItemGroup>
1111

1212
</Project>

Tests/Types/Output/sub-type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.1.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/Types/Output/types.ts

+62-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.1.0.0
3+
// This code was generated with KY.Generator 5.3.0.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>
@@ -10,7 +10,68 @@
1010
import { SubType } from "./sub-type";
1111

1212
export class Types {
13+
public stringField: string;
14+
public intField: number;
15+
public dateTimeField: Date;
16+
public stringProperty: string;
17+
public shortProperty: number;
18+
public uShortProperty: number;
19+
public intProperty: number;
20+
public uIntProperty: number;
21+
public longProperty: number;
22+
public uLongProperty: number;
23+
public floatProperty: number;
24+
public doubleProperty: number;
25+
public boolProperty: boolean;
26+
public objectProperty: unknown;
27+
public nullableBoolProperty: boolean;
28+
public nullableShortProperty: number;
29+
public nullableUShortProperty: number;
30+
public nullableIntProperty: number;
31+
public nullableUIntProperty: number;
32+
public nullableLongProperty: number;
33+
public nullableULongProperty: number;
34+
public nullableFloatProperty: number;
35+
public nullableDoubleProperty: number;
36+
public nullable2BoolProperty: boolean;
37+
public nullable2ShortProperty: number;
38+
public nullable2UShortProperty: number;
39+
public nullable2IntProperty: number;
40+
public nullable2UIntProperty: number;
41+
public nullable2LongProperty: number;
42+
public nullable2ULongProperty: number;
43+
public nullable2FloatProperty: number;
44+
public nullable2DoubleProperty: number;
45+
public systemStringProperty: string;
46+
public systemInt16Property: number;
47+
public systemInt32Property: number;
48+
public systemInt64Property: number;
49+
public systemSingleProperty: number;
50+
public systemDoubleProperty: number;
51+
public systemDateTimeProperty: Date;
52+
public systemArrayProperty: [];
53+
public systemByteProperty: number;
54+
public systemCharProperty: number;
55+
public systemDecimalProperty: number;
56+
public systemGuidProperty: string;
57+
public systemObjectProperty: unknown;
58+
public systemTimeSpanProperty: string;
59+
public systemUInt16Property: number;
60+
public systemUInt32Property: number;
61+
public systemUInt64Property: number;
62+
public subTypeProperty: SubType;
1363
public stringArrayProperty: string[];
64+
public intArrayProperty: number[];
65+
public byteArrayProperty: number[];
66+
public systemDateTimeArrayProperty: Date[];
67+
public subTypeArrayProperty: SubType[];
1468
public stringList: string[];
1569
public subTypeList: SubType[];
70+
public stringStringDictionary: { [key: string]: string; };
71+
public intStringDictionary: { [key: number]: string; };
72+
public stringSubTypeDictionary: { [key: string]: SubType; };
73+
public intSubTypeDictionary: { [key: number]: SubType; };
74+
public subTypeStringDictionary: { /* unsupported type for key. Expected string or number. Got 'SubType' */. };
75+
public readonlyProperty: string;
76+
public writeonlyProperty: string;
1677
}

Tests/Types/Types.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.1.0-rc.0" />
8+
<PackageReference Include="KY.Generator" Version="5.3.0" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
910
</ItemGroup>
1011

1112
</Project>

Tests/WebApiController/WebApiController.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="KY.Core.Common" Version="4.14.0" />
17-
<PackageReference Include="KY.Generator" Version="5.3.0-rc.4" />
18-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0-rc.4" />
17+
<PackageReference Include="KY.Generator" Version="5.3.0" />
18+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.3.0" />
1919
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.1.1" />
2020
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
2121
</ItemGroup>

Tests/build.cmd

+22-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,34 @@ dotnet build --no-incremental
1010
cd ..
1111

1212
REM ==========================================
13-
REM || WebApiControllerWithRoute ||
13+
REM || Types ||
1414
REM ==========================================
1515
REM
16-
cd WebApiControllerWithRoute
16+
cd Types
1717
rmdir /S/Q Output
1818
dotnet add package KY.Generator
1919
dotnet add package KY.Generator.Reflection.Annotations
2020
dotnet build --no-incremental
2121
cd ..
2222

23+
REM ==========================================
24+
REM || WebApiController ||
25+
REM ==========================================
26+
REM
27+
cd WebApiController
28+
rmdir /S/Q ClientApp\src\app\fix-casing\models
29+
rmdir /S/Q ClientApp\src\app\fix-casing\services
30+
rmdir /S/Q ClientApp\src\app\keep-casing\models
31+
rmdir /S/Q ClientApp\src\app\keep-casing\services
32+
rmdir /S/Q ClientApp\src\app\produces\models
33+
rmdir /S/Q ClientApp\src\app\produces\services
34+
rmdir /S/Q ClientApp\src\app\routed\models
35+
rmdir /S/Q ClientApp\src\app\routed\services
36+
rmdir /S/Q ClientApp\src\app\versioned-api\models
37+
rmdir /S/Q ClientApp\src\app\versioned-api\services
38+
dotnet add package KY.Generator
39+
dotnet add package KY.Generator.Reflection.Annotations
40+
dotnet build --no-incremental
41+
cd ..
42+
2343
PAUSE

0 commit comments

Comments
 (0)