Skip to content

Commit

Permalink
Merge pull request #30 from factly/fix/rating-review-schema
Browse files Browse the repository at this point in the history
change ratingExplaination to ratingExplanation in rating schema
  • Loading branch information
shreeharsha-factly authored Nov 17, 2021
2 parents f873ceb + 3b4e3f2 commit de20383
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion schemax/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func GetFactCheckSchema(obj PostData, space model.Space, ratings []factCheckMode
claimSchema.ReviewRating.RatingValue = each.Rating.NumericValue
claimSchema.ReviewRating.AlternateName = each.Rating.Name
claimSchema.ReviewRating.BestRating = bestRating
claimSchema.ReviewRating.RatingExplaination = each.Fact
claimSchema.ReviewRating.RatingExplanation = each.Fact
claimSchema.ReviewRating.WorstRating = worstRating
claimSchema.ItemReviewed.Type = "Claim"
if each.CheckedDate != nil {
Expand Down
12 changes: 6 additions & 6 deletions schemax/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ type ItemReviewed struct {

// ReviewRating type
type ReviewRating struct {
Type string `json:"@type"`
RatingValue int `json:"ratingValue"`
BestRating int `json:"bestRating"`
WorstRating int `json:"worstRating"`
AlternateName string `json:"alternateName"`
RatingExplaination string `json:"ratingExplaination"`
Type string `json:"@type"`
RatingValue int `json:"ratingValue"`
BestRating int `json:"bestRating"`
WorstRating int `json:"worstRating"`
AlternateName string `json:"alternateName"`
RatingExplanation string `json:"ratingExplanation"`
}

// FactCheckSchema for factcheck
Expand Down

0 comments on commit de20383

Please sign in to comment.