Changelog / CSHARP

This changelog is filtered to show only changes for CSHARP. Go back to full changelog.

Apr 7, 2017

Polymorphic Responses with Discriminator Field

APIMatic Code Generation engine now supports polymorphic responses with the help of a discriminator field.

  • Discriminator is a field that is used to differentiate between a parent model and models that inherit from it.
  • The response is deserialized into the parent model or one of its child classes by inspecting the discriminator field’s value in the response.
  • Using a discriminator field, you can build leaner models by not having to build unions of fields needed by a polymorphic response.

Check out the Discriminator documentation to get started.


Mar 6, 2017

Array Serialization Formats

Multiple formats are now supported for Array serialisation in form and query parameters. Formats supported include UnIndexed, Indexed, Plain, CSV, PSV, TSV.

This settings can be set using our API Blueprint CodeGen setting extension named ARRAYSERIALIZATION.


Feb 22, 2017

Additional properties now allowed in CSharp

We have now added support for additional properties in models in the CSharp SDK. The additional properties are deserialized and stored in a dictionary inside the model.

This can be enabled via navigating to the Settings > CodeGen Settings page in the API editor and enabling the Enable Additional Model Properties flag.


Feb 6, 2017

Multiple Datetime Formats in SDKs

We have now added support for multiple datetime formats in our SDKs. The following formats are supported:

  • RFC1123 Datetime (Mon, 15 Jun 2009 20:45:30 GMT)
  • RFC3339 Datetime (2016-03-13T12:52:32.123Z)
  • Unix Timestamp (1480809600)

Jan 11, 2017

Logging in SDKs

SDKs generated by APIMATIC now support logging events!

  • Logging-enabled SDKs will log important events in the API lifecycle to the console, log file or another logging backend.
  • Logging backends are configurable. You can even plug-in a logging service like Loggly or Sentry into your SDKs.
  • Easily monitor your SDK usage and find bugs when they occur.

Jan 3, 2017

Multiple Base URLs Now Supported

You can now use multiple base URLs in your API description using the new Server Configuration. This feature allows you to

  • Vary the Base URL between endpoints.
  • Create multiple Environments and define different Base URLs for them.
  • Templatize Base URL to allow for configuration using parameters in the client.