Skip to content

Releases: LykkeCity/Lykke.Common.ApiLibrary

1.11.0

27 Oct 18:52
21506e6
Compare
Choose a tag to compare

New features

  • Added ValidateModel attribute to validate API models

1.10.2

02 Oct 19:01
760ddca
Compare
Choose a tag to compare

Bug fixes

In case when client errors logging is enabled and server respond with 4xx HTTP status code, in versions prior to this, the error coud be happened:

Message: System.ArgumentException: Either message or exception should be specified at least
   at Lykke.Common.Log.MicrosoftLoggingBasedLogExtensions.Log(ILog log, LogLevel logLevel, String callerFilePath, String process, Int32 callerLineNumber, String message, Object context, Exception exception, Nullable`1 moment)
   at Lykke.Common.Log.MicrosoftLoggingBasedLogExtensions.Warning(ILog log, String process, String message, Exception exception, Object context, Nullable`1 moment, String callerFilePath, Int32 callerLineNumber)
   at Lykke.Logs.Log.Common.Log.ILog.WriteWarningAsync(String process, String context, String info, Nullable`1 dateTime)
   at Common.Log.LogExtensions.WriteWarning(ILog log, String process, Object context, String info, Nullable`1 dateTime)
   at async Lykke.Common.ApiLibrary.Middleware.ClientErrorHandlerMiddleware.LogError(?)
   at async Lykke.Common.ApiLibrary.Middleware.ClientErrorHandlerMiddleware.Invoke(?)
   at async Lykke.Common.ApiLibrary.Middleware.GlobalErrorHandlerMiddleware.Invoke(?)

This issue is fixed in this release.

1.10.1

02 Jul 21:40
2e891e7
Compare
Choose a tag to compare

Improvements

  • Changed ValidationApiException to contain ErrorResponse

1.10.0

02 Jul 20:32
3c355b6
Compare
Choose a tag to compare

Features

  • Added ClientApiException to throw in refit clients
  • Added ValidationApiException to throw in Controllers on model validations
  • Added ClientServiceApiExceptionMiddleware to process ValidationApiException on return ErrorResponse

1.9.0

25 Jun 13:51
f02351d
Compare
Choose a tag to compare

New features

Backward compatibility, broken by 1.8.0 has been restored

1.8.0

24 Jun 23:28
dc84390
Compare
Choose a tag to compare

Main objective of this release is support redesign of the logging system, which is made in the Lykke.Common 7.0.0 and Lykke.Logs 5.0.0

Obsolete

All constructors and methods, which accepts ILog parameter are marked as obsolete. Overloads with ILogFactory insted of ILog have been added.

v1.7.5

20 Jun 15:48
ddd27f3
Compare
Choose a tag to compare

Changes

  • Revert Swashbuckle to v1.1.0

v1.7.4

18 Jun 18:26
1cecc1d
Compare
Choose a tag to compare

Fixed bugs

  • Respect the [Required] attribute for all properties.

Improvements

  • Update Swashbuckle to v2.5

1.7.2

14 Jun 09:53
4113b7c
Compare
Choose a tag to compare

Improvement

Updated FormFileUploadOperationFilter

Now supports ASP.NET Core 2.1 and binding attributes

1.7.1

17 May 16:28
57b02f9
Compare
Choose a tag to compare

Bug fixes

XmsEnumSchemaFilter for the Swagger has been fixed to take into account Swagger schema JSON contract. This release fixes cases when property name in [JsonPropery("propertyName")] is differs from C# model property name.