From 83492e6671e3efd97386adaf6eccd07c3a2afd67 Mon Sep 17 00:00:00 2001 From: Fabian Eichhorner Date: Wed, 12 Dec 2018 22:37:41 +0100 Subject: [PATCH] fixed json model for terms --- service-reporting/Models/Term.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service-reporting/Models/Term.cs b/service-reporting/Models/Term.cs index bb62890..b84939d 100644 --- a/service-reporting/Models/Term.cs +++ b/service-reporting/Models/Term.cs @@ -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 -- 2.43.0