Multiple bugs were identified and fixed for Node SDK. A summary of all bugs is given below with some details about each:
- There was a bug in printing multi-line string literals in controller files.
- In Controller files, string encoding for headers had some issues.
- Exception Class imports within Controllers were printed with invalid exception class names.
- Moment.js (for Date/Datetime) import statement was not being handled properly.
- Imports for
index.jswill now only be included if multiple base urls are specified in the API description.
- Exception Class files' constructor function code has improved.
- API Exception's constructor function code has improved.
- Models or model properties which are being used in endpoints (such as parameters) are now being imported properly in the Controllers. Transitive imports are handled as well (if one model requires another, both are included in the controller).
- Custom Type imports in model files have also been fixed now. If a custom type inherits from another custom type or contains an object of another custom type, that custom type is included in the model file. This import logic has been fixed.
- Code in the
Request Clientfile was not generating properly for
Superagentclient. Code for retries was being added even through retries were not enabled. This bug has been fixed.
All the above mentioned bugs have been fixed. We recommend generating Node SDK again to get all these bug fixes and minor code improvements.