From 675312e03f749e112e4d5038e8fcb71061f79373 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Fri, 18 Sep 2026 05:47:54 +0300 Subject: [PATCH] Documents the conflict response in the update book endpoint summary --- .../Books/GetBooks/GetBooksEndpointSummary.cs | 2 +- .../UpdateBook/UpdateBookEndpointSummary.cs | 20 +++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointSummary.cs index faedae86..e3b99c9f 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/GetBooks/GetBooksEndpointSummary.cs @@ -1,4 +1,4 @@ -#region ========================================================================= USING ===================================================================================== +#region ========================================================================= USING ===================================================================================== using FastEndpoints; using Lumina.Contracts.DTO.Common; using Lumina.Contracts.DTO.MediaContributors; diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/UpdateBook/UpdateBookEndpointSummary.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/UpdateBook/UpdateBookEndpointSummary.cs index f291f7ec..0f9c109b 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/UpdateBook/UpdateBookEndpointSummary.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/Library/WrittenContentLibrary/BookLibrary/Books/UpdateBook/UpdateBookEndpointSummary.cs @@ -44,12 +44,12 @@ public class UpdateBookEndpointSummary : Summary r.Metadata!.Genres, "The list of genres of the book. Required."); RequestParam(r => r.Metadata!.Tags, "The list of tags of the book. Required."); RequestParam(r => r.Metadata!.Language, "The language in which the book is written. Optional."); - RequestParam(r => r.Metadata!.Language!.LanguageCode, "The ISO code of the language of the book. Optional."); - RequestParam(r => r.Metadata!.Language!.LanguageName, "The name of the language of the book in English. Optional."); + RequestParam(r => r.Metadata!.Language!.LanguageCode, "The ISO code of the language of the book. Required."); + RequestParam(r => r.Metadata!.Language!.LanguageName, "The name of the language of the book in English. Required."); RequestParam(r => r.Metadata!.Language!.NativeName, "The native name of the language of the book. Optional."); RequestParam(r => r.Metadata!.OriginalLanguage, "The original language of the book, if it has been translated. Optional."); - RequestParam(r => r.Metadata!.OriginalLanguage!.LanguageCode, "The ISO code of the original language of the book. Optional."); - RequestParam(r => r.Metadata!.OriginalLanguage!.LanguageName, "The name of the original language of the book in English. Optional."); + RequestParam(r => r.Metadata!.OriginalLanguage!.LanguageCode, "The ISO code of the original language of the book. Required."); + RequestParam(r => r.Metadata!.OriginalLanguage!.LanguageName, "The name of the original language of the book in English. Required."); RequestParam(r => r.Metadata!.OriginalLanguage!.NativeName, "The native name of the original language of the book. Optional."); RequestParam(r => r.Metadata!.Publisher, "The publisher of the book. Optional."); RequestParam(r => r.Metadata!.PageCount, "The number of pages of the book. Optional."); @@ -389,6 +389,18 @@ public class UpdateBookEndpointSummary : Summary