Ignore:
Timestamp:
06/23/26 15:20:39 (12 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
0b502c2
Parents:
d300631
Message:

Fixes for authentication and auhtorization\

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.Application/Story/Commands/AddRequest.cs

    rd300631 rb373fea  
    11using MediatR;
     2using System.ComponentModel.DataAnnotations;
    23
    34namespace ChapterX.Application.Story.Commands
    45{
    5     public record AddRequest(bool MatureContent, string ShortDescription, string? Image, string Content, int UserId, List<string> Genres) : IRequest<AddResponse>;
     6    public record AddRequest(
     7        bool MatureContent,
     8        [Required][MaxLength(500)] string ShortDescription,
     9        [MaxLength(2048)] string? Image,
     10        [Required] string Content,
     11        int UserId,
     12        List<string> Genres
     13    ) : IRequest<AddResponse>;
    614}
Note: See TracChangeset for help on using the changeset viewer.