Skip to main content

12 posts tagged with "AngularJS"

View All Tags

· One min read

There was a bug with generating default environment in AngularJS configuration file. The default environment was overridden to be the PRODUCTION environment even if some other environment was chosen in the Server Configuration.

This bug has been fixed now. If you are using an API with multiple environments and encountered a problem with default environment selection before, please generate the SDK again to get the fix.

· One min read

Usage of discriminators is already supported by our code generation engine. We are happy to announce that now support for using discriminators has also been added to AngularJS SDK.

  • 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.

Please generate your SDK again if you want to use this feature.

· One min read

There was a problem with the datetime implementation in AngularJS. Date/datetime strings were not correctly converted into objects. Instead, strings were being sent and received within the SDK. This problem has now been fixed.

Please generate your SDK again to get this fix.

· One min read

There was a bug in the AngularJS SDK in sending complex types (models) as Form and Body Parameters.

In cases of endpoints which accept model instances as form/body parameters, models were not being serialized properly before making the endpoint call. This resulted in camel-cased field values being passed, disregarding the correct API names.

This behavior has now been fixed. Please generate your SDK again to get the fix.

· 2 min read

We have changed the structure of the Angular SDK to break cyclic dependencies. Due to this, the following changes have been made:

  • Model deserialization logic has moved out from model files.
  • We have added new files ObjectMapper.js and ModelFactory.js to the SDK.
  • BaseModel is now being used to assign values to model properties (when model class is directly instantiated)
  • BaseController has been added to the SDK.

Please generate your SDK again to get the improved code.

· 2 min read

Since we're always working on improving our generated SDK's, today we're announcing some major work done on the Angular.js SDK.

  • Angular.js generated code is now standard compliant.
  • The standard we're using is John Papa's Angular1 Style Guide.
  • The linter can be run from the command-line by using the command jshint <folder-name-to-lint>.
  • The configuration file for the linter will be included with the SDK from now.

Please generated your SDK again to get the standard compliant code.

· One min read

A new file, Module.js has been added to the Angular SDKs. It defines the module of the SDK along with its dependencies. This is not a breaking change. Everything should work as before, this is just to make it easier to specify the modules that the SDK depends upon.

· One min read

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)