Improves OpenApi documentation

This commit is contained in:
BinaryAlley committed 2024-11-15 21:01:19 +02:00
1 parent f2703b86c5
commit 77f95708b9
101 files changed
+2336 -294

No files matched your search

@@ -8,8 +8,8 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Directories;
/// <summary>
/// Represents a request to get the directories of a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the directories.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
/// <param name="Path">The file system path for which to get the directories. Required.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetDirectoriesRequest(
string? Path,
@@ -8,9 +8,9 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Directories;
/// <summary>
/// Represents a request to get the tree of directories that make up a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the directory tree.</param>
/// <param name="IncludeFiles">Whether to include files along the directories or not.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
/// <param name="Path">The file system path for which to get the directory tree. Required.</param>
/// <param name="IncludeFiles">Whether to include files along the directories or not. Optional.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetDirectoryTreeRequest(
string? Path,
@@ -8,8 +8,8 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Directories;
/// <summary>
/// Represents a request to get the directories of a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the directory tree.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
/// <param name="Path">The file system path for which to get the directory tree. Required.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetTreeDirectoriesRequest(
string? Path,
@@ -8,8 +8,8 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Files;
/// <summary>
/// Represents a request to get the files at a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the files.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
/// <param name="Path">The file system path for which to get the files. Required.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetFilesRequest(
string? Path,
@@ -8,8 +8,8 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Files;
/// <summary>
/// Represents a request to get the files of a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the tree files.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not.</param>
/// <param name="Path">The file system path for which to get the tree files. Required.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden file system elements or not. Optional.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetTreeFilesRequest(
string? Path,
@@ -8,8 +8,8 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
/// <summary>
/// Represents a request to check the existence of a file system path.
/// </summary>
/// <param name="Path">The file system path to check the exitence of.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden elements in the search results, or not.</param>
/// <param name="Path">The file system path to check the exitence of. Required.</param>
/// <param name="IncludeHiddenElements">Whether to include hidden elements in the search results, or not. Optional.</param>
[DebuggerDisplay("Path: {Path}, IncludeHiddenElements: {IncludeHiddenElements}")]
public record CheckPathExistsRequest(
string? Path,
@@ -1,6 +1,5 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
using System.Text.Json.Serialization;
#endregion
namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
@@ -8,8 +7,8 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
/// <summary>
/// Represents a request to get the root of a file system path.
/// </summary>
/// <param name="OriginalPath">The file system path to combine to.</param>
/// <param name="NewPath">The file system path to combine with.</param>
/// <param name="OriginalPath">The file system path to combine to. Required.</param>
/// <param name="NewPath">The file system path to combine with. Required.</param>
[DebuggerDisplay("OriginalPath: {OriginalPath}, NewPath: {NewPath}")]
public record CombinePathRequest(
string? OriginalPath,
@@ -8,7 +8,7 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
/// <summary>
/// Represents a request to get the root of a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the root.</param>
/// <param name="Path">The file system path for which to get the root. Required.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetPathParentRequest(
string? Path
@@ -8,7 +8,7 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
/// <summary>
/// Represents a request to get the root of a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the root.</param>
/// <param name="Path">The file system path for which to get the root. Required.</param>
[DebuggerDisplay("Path: {Path}")]
public record GetPathRootRequest(
string? Path
@@ -8,7 +8,7 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
/// <summary>
/// Represents a request to split a file system path.
/// </summary>
/// <param name="Path">The file system path for which to get the path segments.</param>
/// <param name="Path">The file system path for which to get the path segments. Required.</param>
[DebuggerDisplay("Path: {Path}")]
public record SplitPathRequest(
string? Path
@@ -8,7 +8,7 @@ namespace Lumina.Contracts.Requests.FileSystemManagement.Path;
/// <summary>
/// Represents a request to check the validity of a file system path.
/// </summary>
/// <param name="Path">The file system path to validate.</param>
/// <param name="Path">The file system path to validate. Required.</param>
[DebuggerDisplay("Path: {Path}")]
public record ValidatePathRequest(
string? Path
@@ -1,6 +1,5 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
using System.Text.Json.Serialization;
#endregion
namespace Lumina.Contracts.Requests.FileSystemManagement.Thumbnails;