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

@@ -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();
@@ -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();
@@ -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();