fix(other-system/test): сделать Token опциональным
UI перестал отправлять токен в теле /test (он теперь из настроек), а TestRequest был с non-null string — ASP.NET model validation отдавал 400 'One or more validation errors occurred'. Сделал nullable.
This commit is contained in:
parent
ce0c3acdd6
commit
a3b3caa2d3
|
|
@ -33,7 +33,7 @@ public class MoySkladImportController : ControllerBase
|
||||||
_tenant = tenant;
|
_tenant = tenant;
|
||||||
}
|
}
|
||||||
|
|
||||||
public record TestRequest(string Token);
|
public record TestRequest(string? Token = null);
|
||||||
public record ImportRequest(string? Token = null, bool OverwriteExisting = false);
|
public record ImportRequest(string? Token = null, bool OverwriteExisting = false);
|
||||||
public record SettingsDto(bool HasToken, string? Masked);
|
public record SettingsDto(bool HasToken, string? Masked);
|
||||||
public record SettingsInput(string Token);
|
public record SettingsInput(string Token);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue