Jordan Yaker
5a2ec03549
fix(javascript): added check to see if the parsed response is really empty.
2016-11-19 15:06:36 -05:00
wing328
0a5cd19e97
update JS test cases
2016-08-12 10:30:33 +08:00
wing328
7a245e3189
[JavaScript] add enum tests cases for JS generator (java) ( #3546 )
...
* add enum tests cases for JS generator (java)
* fix typo quote
2016-08-08 18:52:24 +08:00
wing328
8e43f7c2f6
add new JS files
2016-06-29 22:09:27 +08:00
wing328
9f3b8bab2b
add travis.yml for JS api client
2016-06-15 00:03:11 +08:00
wing328
d35e30d578
better enum support for JS
2016-05-03 11:21:17 +08:00
wing328
8d9a09efb1
update JS test case
2016-04-30 21:36:25 +08:00
demonfiddler
3082702429
[JavaScript] Recommission integration tests for Issue#2258.
2016-03-18 18:49:17 +00:00
xhh
5665c03d19
Fix test
2016-03-17 12:11:19 +08:00
xhh
8d964cff52
Handle arbitrary object in JS client
...
Closes #2165
Other changes:
* Update JS client of the Petstore sample
* Add test cases for getPetByIdInObject and getInventoryInObject
2016-03-04 18:40:03 +08:00
xhh
baf5d2895e
JS client: support optional parameters with object syntax
...
Closes #2027
2016-02-24 20:55:46 +08:00
xhh
33d7d7b4b1
JavaScript: update Petstore sample and fix tests
2016-02-18 10:20:01 +08:00
xhh
d52ebdf684
JavaScript client: Add authentications support
...
Closes #1952
2016-02-06 16:26:15 +08:00
xhh
47f25efb25
JavaScript client: support collectionFormat for parameters
...
Closes #1953
2016-02-04 16:30:41 +08:00
xhh
2eb125681e
JavaScript client: handle response deserialization
...
to support array of models and Date property in model
Closes #1951
2016-02-04 12:36:44 +08:00
xhh
29885ab2ae
Lock version for superagent to 1.7.1
...
to avoid an unexpected behavior on request.header in 1.7.2:
Node version's request.header uses lower-case keys while browser
version's request.header keeps current case.
See also visionmedia/superagent#873
2016-01-27 12:06:22 +08:00
xhh
794589d6b8
JavaScript: add default headers and some tests
2016-01-22 18:46:29 +08:00
wing328
a550eec389
Merge pull request #1942 from xhh/javascript-fixes
...
[JavaScript] Fix initialization issues on array and nested model fields
2016-01-22 18:15:20 +08:00
GU Yu (Byron)
cad64724a5
Remove useless tests
2016-01-22 17:39:25 +08:00
xhh
16e367bdc8
JavaScript: fix constructFromObject for Array fields
...
Closes #1721
2016-01-22 11:23:45 +08:00
xhh
40d83e7f52
Some cleanup
2016-01-19 22:52:05 +08:00
xhh
14630c7632
Make JavaScript client work in both Node.js and browser
...
* Replace jQuery with SuperAgent which works in both Node.js and browser
* Use UMD pattern (returnExports.js) to make the module exporting compatible
with all major systems: AMD, Node.js (CommonJS) and browser
* Implement support of header and form parameters. Closes #1736
* Move HTTP requesting code to `ApiClient` and allow customizing options
in it, e.g. "basePath"
* Update unit tests accordingly and add some tests for `ApiClient`
2016-01-19 22:21:36 +08:00
xhh
f07b75f419
Include Javascript client into integration test
...
and return the promise-like result of $.ajax for API
2015-12-17 20:41:09 +08:00
xhh
794783a4bb
Javascript: bug fixes, clean-ups, tests
...
- Fix the "apiClient.escapeString" issue
- Remove unused code in api.mustache
- Add test case for creating and getting Pet
2015-12-17 20:05:00 +08:00
xhh
dcfe40fc44
Configure Javascript tests to allow running in browser
2015-12-17 18:51:12 +08:00
xhh
146b4a4813
Use a more real jquery mocking in test
2015-12-17 18:00:09 +08:00
xhh
cc408a0dd7
Add unit tests to Javascript Petstore sample
2015-12-17 00:32:50 +08:00