forked from swagger-api/swagger-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Typescript Property Renaming Fix (swagger-api#4264)
* Implemented fix for missing json to property mapping in typescript-node The previous version did not parse the JSON-Response at all, so that properties, which where renamed (e. g.due to modelPropertyNaming config option), were not correctly parsed. E. g.: modelPropertyNaming=camelCase & property 'mounted_at' in json, would be renamed to mountedAt in the model. This was not parsed at all in the typescript-node client api, so that the actual model still had the mounted_at property, but not mountedAt. See swagger-api#2766 for additional details * Updated samples for typescript-node * Reverted initial changes to api.mustache * Draft for object serializer for typescript-node * Fixed missing variable error in ObjectSerializer in typescript-node * Fix for body return type * Fixed attributeTypeMaps when polymorphism is used * Added ObjectSerializer support for polymorphism * Code formatting in typescript-node api.mustache * Fixed primitive type bug & added tests for ts-node - primitives were serialized as strings instead of their respective type - added test case for pet * Code Formatting in ts-node client test See samples/client/petstore/typescript-node/npm/client.ts * Replaced tabs with 4 spaces and improved code formatting * Recreated security test for typescript-node * Read sample.png with fs.readFileSync instead of a stream
- Loading branch information
Showing
13 changed files
with
3,268 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.settings/ | ||
/test-output/ | ||
/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.