Skip to content

Commit

Permalink
Fix incorrect media type error when making request without JSON body
Browse files Browse the repository at this point in the history
  • Loading branch information
3Mydlo3 committed Nov 15, 2023
1 parent a4263ef commit 2974249
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class JobScheduleRequestDto
/// Time when job should be processed.
/// Exact start time will depend on other jobs processing and enqueued at this time.
/// </summary>
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
[JsonProperty(Required = Required.DisallowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public DateTime? ScheduleAt { get; set; }
}
}

0 comments on commit 2974249

Please sign in to comment.