From 95dd3cdd7bf65352e1077886f0567486ab4a8a11 Mon Sep 17 00:00:00 2001 From: Thomas Andersen Date: Thu, 9 Nov 2023 18:13:04 +0100 Subject: [PATCH] Changed example value for price (#221) --- .../v2/Product/ChangedProductResponse.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/coffeecard/CoffeeCard.Models/DataTransferObjects/v2/Product/ChangedProductResponse.cs b/coffeecard/CoffeeCard.Models/DataTransferObjects/v2/Product/ChangedProductResponse.cs index 9c9160bf..8a0cfba0 100644 --- a/coffeecard/CoffeeCard.Models/DataTransferObjects/v2/Product/ChangedProductResponse.cs +++ b/coffeecard/CoffeeCard.Models/DataTransferObjects/v2/Product/ChangedProductResponse.cs @@ -12,15 +12,7 @@ public class ChangedProductResponse /// /// Gets or sets the price of the product. /// - /// - /// { - /// "Price": 150, - /// "NumberOfTickets": 10, - /// "Name": "Espresso", - /// "Description": "A coffee made by forcing steam through ground coffee beans.", - /// "Visible": false - /// } - /// + /// 150 [Required] [Range(0, int.MaxValue, ErrorMessage = "Price must be a non-negative integer.")] public int Price { get; set; }