mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Improves OpenApi documentation
This commit is contained in:
1 parent
f2703b86c5
commit
77f95708b9
101 files changed
+2336
-294
No files matched your search
+2
-2
@@ -156,9 +156,9 @@ public class GetDirectoriesEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/directories/get-directories");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+4
-4
@@ -332,9 +332,9 @@ public class GetDirectoryTreeEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/directories/get-directory-tree");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -361,9 +361,9 @@ public class GetDirectoryTreeEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/directories/get-directory-tree");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+2
-2
@@ -199,9 +199,9 @@ public class GetTreeDirectoriesEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/directories/get-tree-directories");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+2
-2
@@ -195,9 +195,9 @@ public class GetFilesEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/files/get-files");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+2
-2
@@ -195,9 +195,9 @@ public class GetTreeFilesEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/files/get-tree-files");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+2
-2
@@ -77,9 +77,9 @@ public class CombinePathEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/path/combine");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+4
-4
@@ -118,9 +118,9 @@ public class GetPathParentEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/path/get-path-parent");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -145,9 +145,9 @@ public class GetPathParentEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/path/get-path-parent");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+4
-4
@@ -75,9 +75,9 @@ public class GetPathRootEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/path/get-path-root");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -102,9 +102,9 @@ public class GetPathRootEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/path/get-path-root");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+4
-4
@@ -75,9 +75,9 @@ public class SplitPathEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/path/split");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -101,9 +101,9 @@ public class SplitPathEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/path/split");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+4
-4
@@ -99,9 +99,9 @@ public class GetThumbnailEndpointTests : IClassFixture<LuminaApiFactory>, IClass
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/thumbnails/get-thumbnail");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -125,9 +125,9 @@ public class GetThumbnailEndpointTests : IClassFixture<LuminaApiFactory>, IClass
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/thumbnails/get-thumbnail");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+4
-4
@@ -106,8 +106,8 @@ public class ChangePasswordEndpointTests : IClassFixture<LuminaApiFactory>, IDis
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/auth/change-password");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -189,8 +189,8 @@ public class ChangePasswordEndpointTests : IClassFixture<LuminaApiFactory>, IDis
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/auth/change-password");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+2
-2
@@ -217,8 +217,8 @@ public class LoginEndpointTests : IClassFixture<LuminaApiFactory>, IDisposable
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/auth/login");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+8
-8
@@ -153,8 +153,8 @@ public class RecoverPasswordEndpointTests : IClassFixture<LuminaApiFactory>, IDi
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/auth/recover-password");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -179,8 +179,8 @@ public class RecoverPasswordEndpointTests : IClassFixture<LuminaApiFactory>, IDi
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/auth/recover-password");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -210,8 +210,8 @@ public class RecoverPasswordEndpointTests : IClassFixture<LuminaApiFactory>, IDi
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/auth/recover-password");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
@@ -255,8 +255,8 @@ public class RecoverPasswordEndpointTests : IClassFixture<LuminaApiFactory>, IDi
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/auth/recover-password");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
+2
-2
@@ -1577,9 +1577,9 @@ public class AddBookEndpointTests : IClassFixture<LuminaApiFactory>
|
||||
Dictionary<string, JsonElement>? problemDetails = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(content, _jsonOptions);
|
||||
problemDetails.Should().NotBeNull();
|
||||
problemDetails!["status"].GetInt32().Should().Be(StatusCodes.Status422UnprocessableEntity);
|
||||
problemDetails["title"].GetString().Should().Be("Validation Error");
|
||||
problemDetails["title"].GetString().Should().Be("General.Validation");
|
||||
problemDetails["instance"].GetString().Should().Be("/api/v1/books");
|
||||
problemDetails["detail"].GetString().Should().Be("One or more validation errors occurred.");
|
||||
problemDetails["detail"].GetString().Should().Be("OneOrMoreValidationErrorsOccurred");
|
||||
problemDetails["type"].GetString().Should().Be("https://tools.ietf.org/html/rfc4918#section-11.2");
|
||||
problemDetails["traceId"].GetString().Should().NotBeNullOrWhiteSpace();
|
||||
|
||||
|
||||
Reference in new issue
Block a user