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
+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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user