NodeJS SDKs can now optionally preserve additional properties returned in the response. This setting can be enabled via Settings > CodeGen Settings
page in the API editor and turning on the Enable Additional Model Properties
flag.
56 posts tagged with "New Feature"
View All TagsPolymorphic 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.
Added Support for Swagger 1.2 ZIP Files
If you have a Swagger 1.2 API description file split into Resource Listing and API Declaration files, you can import/convert it using a ZIP file. Previously, such API description file could only be converted/imported by providing the Resource Listing file via a URL where all API Declaration files were located relative to this URL.
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
.
Added Swagger Type Discriminator Support
Swagger makes use of a property discriminator
to support polymorphism in custom types. We have now added support for this property in our system. We also offer an extension that will allow you to specify a custom value for the discriminator to override its default value.
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.
Swagger Server Configuration Extension
APIMATIC now offers you a swagger extension to specify Server Configuration details within your Swagger file. When you import this file, we will extract the relevant server configuration information from this extension.
Details
Server configurations can be used to create multiple environments, multiple servers that can be used with specific endpoints and server URLs with template parameters. You can view more details about these configurations at Server Configuration. We have added support for an extension to help you specify this information without having to manually add it through the editor everytime you import your Swagger file. For more details on this extension please see Swagger Server Configuration Extension
Multiple Datetime Formats in Angular
We have now added support for multiple datetime formats in our Angular 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)
Added Support for Loading Relative Schema Files in WADL and WSDL
If you have WADL/WSDL files with references to external schema files that exist relative to your root file, then you can import/convert them successfully. These files may be accessible by URL or a ZIP file.
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)