﻿using System.ComponentModel.DataAnnotations;
using API.WindowsService.Validators;
using Contract;
using FluentValidation.Attributes;

namespace API.WindowsService.Models
{
    [Validator(typeof(AudioRequestValidator))]
    public class AudioJobRequestModel : JobRequestModel
    {
        [Required]
        public AudioDestinationFormat[] Targets { get; set; }

        public string DestinationFilenamePrefix { get; set; }

        [Required]
        public string SourceFilename { get; set; }
    }
}
﻿using System.ComponentModel.DataAnnotations;
using API.WindowsService.Validators;
using Contract;
using FluentValidation.Attributes;

namespace API.WindowsService.Models
{
    [Validator(typeof(AudioRequestValidator))]
    public class AudioJobRequestModel : JobRequestModel
    {
        [Required]
        public AudioDestinationFormat[] Targets { get; set; }

        [Required]
        public string DestinationFilenamePrefix { get; set; }

        [Required]
        public string SourceFilename { get; set; }
    }
}
Change DestinationFilenamePrefix to be a required field
Change DestinationFilenamePrefix to be a required field
