Skip to content

Commit 4a45b3f

Browse files
committed
Merge pull request #2473 from wing328/doc_fix_typo
Fix typo in README.md
2 parents f0c3870 + eef07f4 commit 4a45b3f

File tree

52 files changed

+1871
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1871
-160
lines changed

modules/swagger-codegen/src/main/resources/Javascript/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{/appDescription}}
77
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
88

9-
- API verion: {{appVersion}}
9+
- API version: {{appVersion}}
1010
- Package version: {{projectVersion}}
1111
- Build date: {{generatedDate}}
1212
- Build package: {{generatorClass}}

modules/swagger-codegen/src/main/resources/perl/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
1010

11-
- API verion: {{appVersion}}
11+
- API version: {{appVersion}}
1212
- Package version: {{moduleVersion}}
1313
- Build date: {{generatedDate}}
1414
- Build package: {{generatorClass}}

modules/swagger-codegen/src/main/resources/php/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
77

8-
- API verion: {{appVersion}}
8+
- API version: {{appVersion}}
99
- Package version: {{artifactVersion}}
1010
- Build date: {{generatedDate}}
1111
- Build package: {{generatorClass}}

modules/swagger-codegen/src/main/resources/ruby/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
1010

11-
- API verion: {{appVersion}}
11+
- API version: {{appVersion}}
1212
- Package version: {{gemVersion}}
1313
- Build date: {{generatedDate}}
1414
- Build package: {{generatorClass}}

samples/client/petstore/javascript-promise/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ SwaggerPetstore - JavaScript client for swagger-petstore
44
This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
55
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
66

7-
- API verion: 1.0.0
7+
- API version: 1.0.0
88
- Package version: 1.0.0
9-
- Build date: 2016-03-24T19:50:42.301+08:00
9+
- Build date: 2016-03-30T20:58:13.565+08:00
1010
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
1111

1212
## Installation
@@ -108,7 +108,10 @@ Class | Method | HTTP request | Description
108108

109109
## Documentation for Models
110110

111+
- [SwaggerPetstore.Animal](docs/Animal.md)
112+
- [SwaggerPetstore.Cat](docs/Cat.md)
111113
- [SwaggerPetstore.Category](docs/Category.md)
114+
- [SwaggerPetstore.Dog](docs/Dog.md)
112115
- [SwaggerPetstore.InlineResponse200](docs/InlineResponse200.md)
113116
- [SwaggerPetstore.Model200Response](docs/Model200Response.md)
114117
- [SwaggerPetstore.ModelReturn](docs/ModelReturn.md)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SwaggerPetstore.Animal
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**className** | **String** | |
7+
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SwaggerPetstore.Cat
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**declawed** | **Boolean** | | [optional]
7+
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SwaggerPetstore.Dog
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**breed** | **String** | | [optional]
7+
8+

samples/client/petstore/javascript-promise/src/index.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
(function(factory) {
22
if (typeof define === 'function' && define.amd) {
33
// AMD. Register as an anonymous module.
4-
define(['./ApiClient', './model/Category', './model/InlineResponse200', './model/Model200Response', './model/ModelReturn', './model/Name', './model/Order', './model/Pet', './model/SpecialModelName', './model/Tag', './model/User', './api/PetApi', './api/StoreApi', './api/UserApi'], factory);
4+
define(['./ApiClient', './model/Animal', './model/Cat', './model/Category', './model/Dog', './model/InlineResponse200', './model/Model200Response', './model/ModelReturn', './model/Name', './model/Order', './model/Pet', './model/SpecialModelName', './model/Tag', './model/User', './api/PetApi', './api/StoreApi', './api/UserApi'], factory);
55
} else if (typeof module === 'object' && module.exports) {
66
// CommonJS-like environments that support module.exports, like Node.
7-
module.exports = factory(require('./ApiClient'), require('./model/Category'), require('./model/InlineResponse200'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/Order'), require('./model/Pet'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/User'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi'));
7+
module.exports = factory(require('./ApiClient'), require('./model/Animal'), require('./model/Cat'), require('./model/Category'), require('./model/Dog'), require('./model/InlineResponse200'), require('./model/Model200Response'), require('./model/ModelReturn'), require('./model/Name'), require('./model/Order'), require('./model/Pet'), require('./model/SpecialModelName'), require('./model/Tag'), require('./model/User'), require('./api/PetApi'), require('./api/StoreApi'), require('./api/UserApi'));
88
}
9-
}(function(ApiClient, Category, InlineResponse200, Model200Response, ModelReturn, Name, Order, Pet, SpecialModelName, Tag, User, PetApi, StoreApi, UserApi) {
9+
}(function(ApiClient, Animal, Cat, Category, Dog, InlineResponse200, Model200Response, ModelReturn, Name, Order, Pet, SpecialModelName, Tag, User, PetApi, StoreApi, UserApi) {
1010
'use strict';
1111

1212
/**
@@ -46,11 +46,26 @@
4646
* @property {module:ApiClient}
4747
*/
4848
ApiClient: ApiClient,
49+
/**
50+
* The Animal model constructor.
51+
* @property {module:model/Animal}
52+
*/
53+
Animal: Animal,
54+
/**
55+
* The Cat model constructor.
56+
* @property {module:model/Cat}
57+
*/
58+
Cat: Cat,
4959
/**
5060
* The Category model constructor.
5161
* @property {module:model/Category}
5262
*/
5363
Category: Category,
64+
/**
65+
* The Dog model constructor.
66+
* @property {module:model/Dog}
67+
*/
68+
Dog: Dog,
5469
/**
5570
* The InlineResponse200 model constructor.
5671
* @property {module:model/InlineResponse200}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
(function(root, factory) {
2+
if (typeof define === 'function' && define.amd) {
3+
// AMD. Register as an anonymous module.
4+
define(['../ApiClient'], factory);
5+
} else if (typeof module === 'object' && module.exports) {
6+
// CommonJS-like environments that support module.exports, like Node.
7+
module.exports = factory(require('../ApiClient'));
8+
} else {
9+
// Browser globals (root is window)
10+
if (!root.SwaggerPetstore) {
11+
root.SwaggerPetstore = {};
12+
}
13+
root.SwaggerPetstore.Animal = factory(root.SwaggerPetstore.ApiClient);
14+
}
15+
}(this, function(ApiClient) {
16+
'use strict';
17+
18+
/**
19+
* The Animal model module.
20+
* @module model/Animal
21+
* @version 1.0.0
22+
*/
23+
24+
/**
25+
* Constructs a new <code>Animal</code>.
26+
* @alias module:model/Animal
27+
* @class
28+
* @param className
29+
*/
30+
var exports = function(className) {
31+
32+
this['className'] = className;
33+
};
34+
35+
/**
36+
* Constructs a <code>Animal</code> from a plain JavaScript object, optionally creating a new instance.
37+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
38+
* @param {Object} data The plain JavaScript object bearing properties of interest.
39+
* @param {module:model/Animal} obj Optional instance to populate.
40+
* @return {module:model/Animal} The populated <code>Animal</code> instance.
41+
*/
42+
exports.constructFromObject = function(data, obj) {
43+
if (data) {
44+
obj = obj || new exports();
45+
46+
if (data.hasOwnProperty('className')) {
47+
obj['className'] = ApiClient.convertToType(data['className'], 'String');
48+
}
49+
}
50+
return obj;
51+
}
52+
53+
54+
/**
55+
* @member {String} className
56+
*/
57+
exports.prototype['className'] = undefined;
58+
59+
60+
61+
62+
return exports;
63+
}));

0 commit comments

Comments
 (0)