Skip to content

Commit

Permalink
Changed example value for price (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
TTA777 authored Nov 9, 2023
1 parent daed7ca commit 95dd3cd
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ public class ChangedProductResponse
/// <summary>
/// Gets or sets the price of the product.
/// </summary>
/// <example>
/// {
/// "Price": 150,
/// "NumberOfTickets": 10,
/// "Name": "Espresso",
/// "Description": "A coffee made by forcing steam through ground coffee beans.",
/// "Visible": false
/// }
/// </example>
/// <example> 150 </example>
[Required]
[Range(0, int.MaxValue, ErrorMessage = "Price must be a non-negative integer.")]
public int Price { get; set; }
Expand Down

0 comments on commit 95dd3cd

Please sign in to comment.