fixed json model for terms
authorFabian Eichhorner <fabian.eichhorner@gmail.com>
Wed, 12 Dec 2018 21:37:41 +0000 (22:37 +0100)
committerFabian Eichhorner <fabian.eichhorner@gmail.com>
Wed, 12 Dec 2018 21:37:41 +0000 (22:37 +0100)
service-reporting/Models/Term.cs

index bb6289036aa49bfa77c966bd8bc63d8120de2461..b84939db0a3a0854b9c91bfbf0ba98c954317272 100644 (file)
@@ -1,4 +1,4 @@
-
+using System.ComponentModel.DataAnnotations;
 namespace PdfService.Models
 {
     // represents the data got from sentiment analysis.
@@ -9,7 +9,9 @@ namespace PdfService.Models
             this.Name = Name;
             this.Sentiment = Sentiment;
         }
+        [Required]
         public string Name { get; set; }
+        [Required]
         public double Sentiment { get; set; }
     }
 }
\ No newline at end of file