File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
ClassLibrary/DataWarehouseAutomation Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ The interface itself is a Json schema definition (JSDL) with examples on how to
31
31
32
32
<ItemGroup >
33
33
<PackageReference Include =" Handlebars.Net" Version =" 2.1.4" />
34
+ <PackageReference Include =" Newtonsoft.Json" Version =" 13.0.3" />
35
+ <PackageReference Include =" Newtonsoft.Json.Schema" Version =" 3.0.15" />
34
36
</ItemGroup >
35
37
36
38
</Project >
Original file line number Diff line number Diff line change 4
4
using Newtonsoft . Json . Linq ;
5
5
using Newtonsoft . Json . Schema ;
6
6
7
- namespace Test_Project ;
7
+ namespace DataWarehouseAutomation ;
8
+
8
9
9
10
public class JsonValidation
10
11
{
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
+ using DataWarehouseAutomation ;
3
4
4
5
namespace Test_Project
5
6
{
@@ -29,9 +30,6 @@ static void Main(string[] args)
29
30
fileList . Add ( sampleTemplateDirectory + @"sampleVDW_Sat_Customer_v161.json" ) ; // Validating a Json generated by TEAM / VDW
30
31
fileList . Add ( sampleTemplateDirectory + @"sampleVDW_StagingArea.json" ) ; // Validating a Json generated by TEAM / VDW
31
32
32
-
33
-
34
-
35
33
foreach ( string jsonFile in fileList )
36
34
{
37
35
var result = JsonValidation . ValidateJsonFileAgainstSchema ( jsonSchema , jsonFile ) ;
You can’t perform that action at this time.
0 commit comments