mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 22:20:56 +00:00
Add fixes for es6 generator (#180)
Various fixes for JS (ES6) generator
This commit is contained in:
parent
53d9878cf2
commit
c607ea8b31
@ -986,6 +986,11 @@ public class JavascriptClientCodegen extends DefaultCodegen implements CodegenCo
|
|||||||
}
|
}
|
||||||
String jsdocType = getJSDocType(operation);
|
String jsdocType = getJSDocType(operation);
|
||||||
operation.vendorExtensions.put("x-jsdoc-type", jsdocType);
|
operation.vendorExtensions.put("x-jsdoc-type", jsdocType);
|
||||||
|
|
||||||
|
// Format the return type correctly
|
||||||
|
if (operation.returnType != null) {
|
||||||
|
operation.vendorExtensions.put("x-return-type", normalizeType(operation.returnType));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return objs;
|
return objs;
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
var authNames = [<#authMethods>'<name>'<#hasMore>, </hasMore></authMethods>];
|
var authNames = [<#authMethods>'<name>'<#hasMore>, </hasMore></authMethods>];
|
||||||
var contentTypes = [<#consumes>'<& mediaType>'<#hasMore>, </hasMore></consumes>];
|
var contentTypes = [<#consumes>'<& mediaType>'<#hasMore>, </hasMore></consumes>];
|
||||||
var accepts = [<#produces>'<& mediaType>'<#hasMore>, </hasMore></produces>];
|
var accepts = [<#produces>'<& mediaType>'<#hasMore>, </hasMore></produces>];
|
||||||
var returnType = <#returnType><&returnType></returnType><^returnType>null</returnType>;
|
var returnType = <#vendorExtensions.x-return-type><&vendorExtensions.x-return-type></vendorExtensions.x-return-type><^vendorExtensions.x-return-type>null</vendorExtensions.x-return-type>;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'<&path>', '<httpMethod>',
|
'<&path>', '<httpMethod>',
|
||||||
|
@ -15,7 +15,7 @@ import querystring from "querystring";
|
|||||||
* @alias module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}ApiClient
|
* @alias module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}ApiClient
|
||||||
* @class
|
* @class
|
||||||
*/{{/emitJSDoc}}
|
*/{{/emitJSDoc}}
|
||||||
export default class ApiClient {
|
class ApiClient {
|
||||||
constructor() {
|
constructor() {
|
||||||
{{#emitJSDoc}}/**
|
{{#emitJSDoc}}/**
|
||||||
* The base URL against which to resolve every API call's (relative) path.
|
* The base URL against which to resolve every API call's (relative) path.
|
||||||
@ -221,43 +221,6 @@ export default class ApiClient {
|
|||||||
return newParams;
|
return newParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#emitJSDoc}}/**
|
|
||||||
* Enumeration of collection format separator strategies.
|
|
||||||
* @enum {String}
|
|
||||||
* @readonly
|
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
static CollectionFormatEnum = {
|
|
||||||
{{#emitJSDoc}}/**
|
|
||||||
* Comma-separated values. Value: <code>csv</code>
|
|
||||||
* @const
|
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
CSV: ',',
|
|
||||||
|
|
||||||
{{#emitJSDoc}}/**
|
|
||||||
* Space-separated values. Value: <code>ssv</code>
|
|
||||||
* @const
|
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
SSV: ' ',
|
|
||||||
|
|
||||||
{{#emitJSDoc}}/**
|
|
||||||
* Tab-separated values. Value: <code>tsv</code>
|
|
||||||
* @const
|
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
TSV: '\t',
|
|
||||||
|
|
||||||
{{#emitJSDoc}}/**
|
|
||||||
* Pipe(|)-separated values. Value: <code>pipes</code>
|
|
||||||
* @const
|
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
PIPES: '|',
|
|
||||||
|
|
||||||
{{#emitJSDoc}}/**
|
|
||||||
* Native array. Value: <code>multi</code>
|
|
||||||
* @const
|
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
MULTI: 'multi'
|
|
||||||
};
|
|
||||||
|
|
||||||
{{#emitJSDoc}}/**
|
{{#emitJSDoc}}/**
|
||||||
* Builds a string representation of an array-type actual parameter, according to the given collection format.
|
* Builds a string representation of an array-type actual parameter, according to the given collection format.
|
||||||
* @param {Array} param An array parameter.
|
* @param {Array} param An array parameter.
|
||||||
@ -597,8 +560,46 @@ export default class ApiClient {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{{#emitJSDoc}}/**
|
||||||
|
* Enumeration of collection format separator strategies.
|
||||||
|
* @enum {String}
|
||||||
|
* @readonly
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
|
ApiClient.CollectionFormatEnum = {
|
||||||
|
{{#emitJSDoc}}/**
|
||||||
|
* Comma-separated values. Value: <code>csv</code>
|
||||||
|
* @const
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
|
CSV: ',',
|
||||||
|
|
||||||
|
{{#emitJSDoc}}/**
|
||||||
|
* Space-separated values. Value: <code>ssv</code>
|
||||||
|
* @const
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
|
SSV: ' ',
|
||||||
|
|
||||||
|
{{#emitJSDoc}}/**
|
||||||
|
* Tab-separated values. Value: <code>tsv</code>
|
||||||
|
* @const
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
|
TSV: '\t',
|
||||||
|
|
||||||
|
{{#emitJSDoc}}/**
|
||||||
|
* Pipe(|)-separated values. Value: <code>pipes</code>
|
||||||
|
* @const
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
|
PIPES: '|',
|
||||||
|
|
||||||
|
{{#emitJSDoc}}/**
|
||||||
|
* Native array. Value: <code>multi</code>
|
||||||
|
* @const
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
|
MULTI: 'multi'
|
||||||
|
};
|
||||||
|
|
||||||
{{#emitJSDoc}}/**
|
{{#emitJSDoc}}/**
|
||||||
* The default API client implementation.
|
* The default API client implementation.
|
||||||
* @type {module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}ApiClient}
|
* @type {module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}ApiClient}
|
||||||
*/{{/emitJSDoc}}
|
*/{{/emitJSDoc}}
|
||||||
ApiClient.instance = new ApiClient();
|
ApiClient.instance = new ApiClient();
|
||||||
|
export default ApiClient;
|
@ -69,7 +69,7 @@ export default class <classname> {
|
|||||||
let authNames = [<#authMethods>'<name>'<#hasMore>, </hasMore></authMethods>];
|
let authNames = [<#authMethods>'<name>'<#hasMore>, </hasMore></authMethods>];
|
||||||
let contentTypes = [<#consumes>'<& mediaType>'<#hasMore>, </hasMore></consumes>];
|
let contentTypes = [<#consumes>'<& mediaType>'<#hasMore>, </hasMore></consumes>];
|
||||||
let accepts = [<#produces>'<& mediaType>'<#hasMore>, </hasMore></produces>];
|
let accepts = [<#produces>'<& mediaType>'<#hasMore>, </hasMore></produces>];
|
||||||
let returnType = <#returnType><&returnType></returnType><^returnType>null</returnType>;
|
let returnType = <#vendorExtensions.x-return-type><&vendorExtensions.x-return-type></vendorExtensions.x-return-type><^vendorExtensions.x-return-type>null</vendorExtensions.x-return-type>;
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'<&path>', '<httpMethod>',
|
'<&path>', '<httpMethod>',
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
{{>licenseInfo}}
|
{{>licenseInfo}}
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
{{#imports}}import {{import}} from './{{import}}';
|
{{#imports}}import {{import}} from './{{import}}';
|
||||||
{{/imports}}
|
{{/imports}}{{#models}}{{#model}}{{#isEnum}}{{>partial_model_enum_class}}{{/isEnum}}{{^isEnum}}{{>partial_model_generic}}{{/isEnum}}{{/model}}{{/models}}
|
||||||
|
|
||||||
{{#models}}{{#model}}
|
|
||||||
{{#isEnum}}{{>partial_model_enum_class}}{{/isEnum}}{{^isEnum}}{{>partial_model_generic}}{{/isEnum}}
|
|
||||||
{{/model}}{{/models}}
|
|
||||||
|
@ -9,7 +9,7 @@ export default class {{classname}} {
|
|||||||
* value: {{{value}}}
|
* value: {{{value}}}
|
||||||
* @const
|
* @const
|
||||||
*/{{/emitJSDoc}}
|
*/{{/emitJSDoc}}
|
||||||
{{name}} = {{{value}}};
|
"{{name}}" = {{{value}}};
|
||||||
|
|
||||||
{{/enumVars}}{{/allowableValues}}
|
{{/enumVars}}{{/allowableValues}}
|
||||||
|
|
||||||
|
@ -1,54 +1,49 @@
|
|||||||
|
|
||||||
{{#models}}{{#model}}
|
{{#models}}{{#model}}{{#emitJSDoc}}/**
|
||||||
|
* The {{classname}} model module.
|
||||||
{{#emitJSDoc}}/**
|
* @module {{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{classname}}
|
||||||
* The {{classname}} model module.
|
* @version {{projectVersion}}
|
||||||
* @module {{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{classname}}
|
*/{{/emitJSDoc}}
|
||||||
* @version {{projectVersion}}
|
class {{classname}} {{#parent}}{{^parentModel}}{{#vendorExtensions.x-isArray}}extends Array {{/vendorExtensions.x-isArray}}{{/parentModel}}{{/parent}}{
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
export default class {{classname}} {{#parent}}{{^parentModel}}{{#vendorExtensions.x-isArray}}extends Array {{/vendorExtensions.x-isArray}}{{/parentModel}}{{/parent}}{
|
|
||||||
{{#emitJSDoc}}/**
|
{{#emitJSDoc}}/**
|
||||||
* Constructs a new <code>{{classname}}</code>.{{#description}}
|
* Constructs a new <code>{{classname}}</code>.{{#description}}
|
||||||
* {{description}}{{/description}}
|
* {{description}}{{/description}}
|
||||||
* @alias module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{classname}}
|
* @alias module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{classname}}{{#useInheritance}}{{#parent}}
|
||||||
* @class{{#useInheritance}}{{#parent}}
|
* @extends {{#parentModel}}module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{classname}}{{/parentModel}}{{^parentModel}}{{#vendorExtensions.x-isArray}}Array{{/vendorExtensions.x-isArray}}{{#vendorExtensions.x-isMap}}Object{{/vendorExtensions.x-isMap}}{{/parentModel}}{{/parent}}{{#interfaces}}
|
||||||
* @extends {{#parentModel}}module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{classname}}{{/parentModel}}{{^parentModel}}{{#vendorExtensions.x-isArray}}Array{{/vendorExtensions.x-isArray}}{{#vendorExtensions.x-isMap}}Object{{/vendorExtensions.x-isMap}}{{/parentModel}}{{/parent}}{{#interfaces}}
|
* @implements module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{.}}{{/interfaces}}{{/useInheritance}}{{#vendorExtensions.x-all-required}}
|
||||||
* @implements module:{{#invokerPackage}}{{invokerPackage}}/{{/invokerPackage}}{{#modelPackage}}{{modelPackage}}/{{/modelPackage}}{{.}}{{/interfaces}}{{/useInheritance}}{{#vendorExtensions.x-all-required}}
|
* @param {{name}} {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=> {{#description}}{{{description}}}{{/description}}{{/vendorExtensions.x-all-required}}
|
||||||
* @param {{name}} {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=> {{#description}}{{{description}}}{{/description}}{{/vendorExtensions.x-all-required}}
|
*/{{/emitJSDoc}}
|
||||||
*/{{/emitJSDoc}}
|
constructor({{#vendorExtensions.x-all-required}}{{name}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-all-required}}) { {{#parent}}{{^parentModel}}{{#vendorExtensions.x-isArray}}
|
||||||
|
|
||||||
constructor({{#vendorExtensions.x-all-required}}{{name}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-all-required}}) {
|
|
||||||
{{#parent}}{{^parentModel}}{{#vendorExtensions.x-isArray}}
|
|
||||||
super();
|
super();
|
||||||
{{/vendorExtensions.x-isArray}}{{/parentModel}}{{/parent}}
|
{{/vendorExtensions.x-isArray}}{{/parentModel}}{{/parent}}{{#useInheritance}}
|
||||||
|
{{#interfaceModels}}{{classname}}.initialize(this{{#vendorExtensions.x-all-required}}, {{name}}{{/vendorExtensions.x-all-required}});{{/interfaceModels}}{{/useInheritance}}
|
||||||
{{#useInheritance}}
|
{{classname}}.initialize(this{{#vendorExtensions.x-all-required}}, {{name}}{{/vendorExtensions.x-all-required}});
|
||||||
{{#parentModel}}{{classname}}.call(this{{#vendorExtensions.x-all-required}}, {{name}}{{/vendorExtensions.x-all-required}});{{/parentModel}}
|
|
||||||
{{#interfaceModels}}{{classname}}.call(this{{#vendorExtensions.x-all-required}}, {{name}}{{/vendorExtensions.x-all-required}});{{/interfaceModels}}
|
|
||||||
{{/useInheritance}}
|
|
||||||
|
|
||||||
{{#vars}}{{#required}}this['{{baseName}}'] = {{name}};{{/required}}{{/vars}}
|
|
||||||
|
|
||||||
{{#parent}}{{^parentModel}}return this;{{/parentModel}}{{/parent}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#emitJSDoc}}/**
|
{{#emitJSDoc}}/**
|
||||||
* Constructs a <code>{{classname}}</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {{=< >=}}{module:<#invokerPackage><invokerPackage>/</invokerPackage><#modelPackage><modelPackage>/</modelPackage><classname>}<={{ }}=> obj Optional instance to populate.
|
*/{{/emitJSDoc}}
|
||||||
* @return {{=< >=}}{module:<#invokerPackage><invokerPackage>/</invokerPackage><#modelPackage><modelPackage>/</modelPackage><classname>}<={{ }}=> The populated <code>{{classname}}</code> instance.
|
static initialize(obj{{#vendorExtensions.x-all-required}}, {{name}}{{/vendorExtensions.x-all-required}}) { {{#vars}}{{#required}}
|
||||||
*/{{/emitJSDoc}}
|
obj['{{baseName}}'] = {{name}};{{/required}}{{/vars}}
|
||||||
|
}
|
||||||
|
|
||||||
|
{{#emitJSDoc}}/**
|
||||||
|
* Constructs a <code>{{classname}}</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {{=< >=}}{module:<#invokerPackage><invokerPackage>/</invokerPackage><#modelPackage><modelPackage>/</modelPackage><classname>}<={{ }}=> obj Optional instance to populate.
|
||||||
|
* @return {{=< >=}}{module:<#invokerPackage><invokerPackage>/</invokerPackage><#modelPackage><modelPackage>/</modelPackage><classname>}<={{ }}=> The populated <code>{{classname}}</code> instance.
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data){{! TODO: support polymorphism: discriminator property on data determines class to instantiate.}} {
|
if (data){{! TODO: support polymorphism: discriminator property on data determines class to instantiate.}} {
|
||||||
obj = obj || new {{classname}}();
|
obj = obj || new {{classname}}();{{#parent}}{{^parentModel}}
|
||||||
|
|
||||||
{{#parent}}{{^parentModel}}ApiClient.constructFromObject(data, obj, '{{vendorExtensions.x-itemType}}');{{/parentModel}}
|
ApiClient.constructFromObject(data, obj, '{{vendorExtensions.x-itemType}}');
|
||||||
{{/parent}}
|
{{/parentModel}}{{/parent}}{{#useInheritance}}{{#parentModel}}
|
||||||
|
{{classname}}.constructFromObject(data, obj);{{/parentModel}}{{#interfaces}}
|
||||||
{{#useInheritance}}{{#parentModel}}{{classname}}.constructFromObject(data, obj);{{/parentModel}}
|
{{.}}.constructFromObject(data, obj);{{/interfaces}}{{/useInheritance}}
|
||||||
{{#interfaces}}{{.}}.constructFromObject(data, obj);{{/interfaces}}
|
|
||||||
{{/useInheritance}}
|
|
||||||
|
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
if (data.hasOwnProperty('{{baseName}}')) {
|
if (data.hasOwnProperty('{{baseName}}')) {
|
||||||
@ -59,61 +54,49 @@ export default class {{classname}} {{#parent}}{{^parentModel}}{{#vendorExtension
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#vars}}
|
{{#emitModelMethods}}{{#vars}}{{#emitJSDoc}}/**{{#description}}
|
||||||
{{#emitJSDoc}}/**{{#description}}
|
* Returns {{{description}}}{{/description}}{{#minimum}}
|
||||||
* {{{description}}}{{/description}}
|
* minimum: {{minimum}}{{/minimum}}{{#maximum}}
|
||||||
* @member {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=> {{baseName}}{{#defaultValue}}
|
* maximum: {{maximum}}{{/maximum}}
|
||||||
* @default {{{defaultValue}}}{{/defaultValue}}
|
* @return {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=>
|
||||||
*/{{/emitJSDoc}}
|
*/{{/emitJSDoc}}
|
||||||
{{baseName}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}undefined{{/defaultValue}};
|
|
||||||
{{/vars}}
|
|
||||||
|
|
||||||
{{#useInheritance}}{{#interfaceModels}}
|
|
||||||
// Implement {{classname}} interface:
|
|
||||||
{{#allVars}}{{#emitJSDoc}}/**{{#description}}
|
|
||||||
* {{{description}}}{{/description}}
|
|
||||||
* @member {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=> {{baseName}}{{#defaultValue}}
|
|
||||||
* @default {{{defaultValue}}}{{/defaultValue}}
|
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
{{baseName}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}undefined{{/defaultValue}};
|
|
||||||
{{/allVars}}
|
|
||||||
{{/interfaceModels}}{{/useInheritance}}
|
|
||||||
|
|
||||||
|
|
||||||
{{#emitModelMethods}}{{#vars}}
|
|
||||||
{{#emitJSDoc}}/**{{#description}}
|
|
||||||
* Returns {{{description}}}{{/description}}{{#minimum}}
|
|
||||||
* minimum: {{minimum}}{{/minimum}}{{#maximum}}
|
|
||||||
* maximum: {{maximum}}{{/maximum}}
|
|
||||||
* @return {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=>
|
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
{{getter}}() {
|
{{getter}}() {
|
||||||
return this.{{baseName}};
|
return this.{{baseName}};
|
||||||
}
|
}
|
||||||
|
|
||||||
{{#emitJSDoc}}/**{{#description}}
|
{{#emitJSDoc}}/**{{#description}}
|
||||||
* Sets {{{description}}}{{/description}}
|
* Sets {{{description}}}{{/description}}
|
||||||
* @param {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=> {{name}}{{#description}} {{{description}}}{{/description}}
|
* @param {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=> {{name}}{{#description}} {{{description}}}{{/description}}
|
||||||
*/{{/emitJSDoc}}
|
*/{{/emitJSDoc}}
|
||||||
{{setter}}({{name}}) {
|
{{setter}}({{name}}) {
|
||||||
this['{{baseName}}'] = {{name}};
|
this['{{baseName}}'] = {{name}};
|
||||||
}
|
}
|
||||||
{{/vars}}{{/emitModelMethods}}
|
{{/vars}}{{/emitModelMethods}}{{/model}}
|
||||||
|
}
|
||||||
|
|
||||||
|
{{#vars}}{{#emitJSDoc}}/**{{#description}}
|
||||||
|
* {{{description}}}{{/description}}
|
||||||
|
* @member {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=> {{baseName}}{{#defaultValue}}
|
||||||
|
* @default {{{defaultValue}}}{{/defaultValue}}
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
|
{{classname}}.prototype['{{baseName}}'] = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}undefined{{/defaultValue}};
|
||||||
|
|
||||||
{{#vars}}
|
|
||||||
{{#isEnum}}
|
|
||||||
{{^isContainer}}
|
|
||||||
{{>partial_model_inner_enum}}
|
|
||||||
{{/isContainer}}
|
|
||||||
{{/isEnum}}
|
|
||||||
{{#items.isEnum}}
|
|
||||||
{{#items}}
|
|
||||||
{{^isContainer}}
|
|
||||||
{{>partial_model_inner_enum}}
|
|
||||||
{{/isContainer}}
|
|
||||||
{{/items}}
|
|
||||||
{{/items.isEnum}}
|
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
|
|
||||||
{{/model}}{{/models}}
|
{{#useInheritance}}{{#interfaceModels}}// Implement {{classname}} interface:
|
||||||
}
|
{{#allVars}}{{#emitJSDoc}}/**{{#description}}
|
||||||
|
* {{{description}}}{{/description}}
|
||||||
|
* @member {{=< >=}}{<&vendorExtensions.x-jsdoc-type>}<={{ }}=> {{baseName}}{{#defaultValue}}
|
||||||
|
* @default {{{defaultValue}}}{{/defaultValue}}
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
|
{{classname}}.prototype['{{baseName}}'] = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}undefined{{/defaultValue}};
|
||||||
|
{{/allVars}}{{/interfaceModels}}{{/useInheritance}}
|
||||||
|
|
||||||
|
{{#vars}}{{#isEnum}}{{^isContainer}}
|
||||||
|
{{>partial_model_inner_enum}}
|
||||||
|
{{/isContainer}}{{/isEnum}}{{#items.isEnum}}{{#items}}{{^isContainer}}
|
||||||
|
{{>partial_model_inner_enum}}
|
||||||
|
{{/isContainer}}{{/items}}{{/items.isEnum}}{{/vars}}
|
||||||
|
|
||||||
|
export default {{classname}};
|
||||||
|
{{/models}}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
|
{{#emitJSDoc}}/**
|
||||||
|
* Allowed values for the <code>{{baseName}}</code> property.
|
||||||
|
* @enum {{=<% %>=}}{<%datatype%>}<%={{ }}=%>
|
||||||
|
* @readonly
|
||||||
|
*/{{/emitJSDoc}}
|
||||||
|
{{classname}}['{{datatypeWithEnum}}'] = {
|
||||||
|
{{#allowableValues}}{{#enumVars}}
|
||||||
{{#emitJSDoc}}/**
|
{{#emitJSDoc}}/**
|
||||||
* Allowed values for the <code>{{baseName}}</code> property.
|
* value: {{{value}}}
|
||||||
* @enum {{=<% %>=}}{<%datatype%>}<%={{ }}=%>
|
* @const
|
||||||
* @readonly
|
*/{{/emitJSDoc}}
|
||||||
*/{{/emitJSDoc}}
|
"{{name}}": {{{value}}}{{^-last}},
|
||||||
static {{datatypeWithEnum}} = {
|
{{/-last}}
|
||||||
{{#allowableValues}}{{#enumVars}}
|
{{/enumVars}}{{/allowableValues}}
|
||||||
{{#emitJSDoc}}/**
|
};
|
||||||
* value: {{{value}}}
|
|
||||||
* @const
|
|
||||||
*/{{/emitJSDoc}}
|
|
||||||
"{{name}}": {{{value}}}{{^-last}},
|
|
||||||
{{/-last}}
|
|
||||||
{{/enumVars}}{{/allowableValues}}
|
|
||||||
};
|
|
||||||
|
39
pom.xml
39
pom.xml
@ -571,6 +571,42 @@
|
|||||||
<module>samples/client/petstore/javascript</module>
|
<module>samples/client/petstore/javascript</module>
|
||||||
</modules>
|
</modules>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>javascript-client-es6</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>env</name>
|
||||||
|
<value>javascript</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<modules>
|
||||||
|
<module>samples/client/petstore/javascript-es6</module>
|
||||||
|
</modules>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>javascript-client-promise</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>env</name>
|
||||||
|
<value>javascript</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<modules>
|
||||||
|
<module>samples/client/petstore/javascript-promise</module>
|
||||||
|
</modules>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>javascript-client-promise-es6</id>
|
||||||
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>env</name>
|
||||||
|
<value>javascript</value>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
|
<modules>
|
||||||
|
<module>samples/client/petstore/javascript-promise-es6</module>
|
||||||
|
</modules>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>scala-client</id>
|
<id>scala-client</id>
|
||||||
<activation>
|
<activation>
|
||||||
@ -904,6 +940,9 @@
|
|||||||
<module>samples/client/petstore/scala</module>
|
<module>samples/client/petstore/scala</module>
|
||||||
<module>samples/client/petstore/akka-scala</module>
|
<module>samples/client/petstore/akka-scala</module>
|
||||||
<module>samples/client/petstore/javascript</module>
|
<module>samples/client/petstore/javascript</module>
|
||||||
|
<module>samples/client/petstore/javascript-es6</module>
|
||||||
|
<module>samples/client/petstore/javascript-promise</module>
|
||||||
|
<module>samples/client/petstore/javascript-promise-es6</module>
|
||||||
<module>samples/client/petstore/python</module>
|
<module>samples/client/petstore/python</module>
|
||||||
<module>samples/client/petstore/python-tornado</module>
|
<module>samples/client/petstore/python-tornado</module>
|
||||||
<module>samples/client/petstore/python-asyncio</module>
|
<module>samples/client/petstore/python-asyncio</module>
|
||||||
|
45
samples/client/petstore/javascript-es6/pom.xml
Normal file
45
samples/client/petstore/javascript-es6/pom.xml
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>org.openapitools</groupId>
|
||||||
|
<artifactId>openapi-petstore-javascript-es6</artifactId>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<name>OpenAPI Petstore JS Client (ES6)</name>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>1.2.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>npm-install</id>
|
||||||
|
<phase>pre-integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>npm</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>install</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>mocha</id>
|
||||||
|
<phase>integration-test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>npm</executable>
|
||||||
|
<arguments>
|
||||||
|
<argument>test</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</project>
|
@ -27,7 +27,7 @@ import querystring from "querystring";
|
|||||||
* @alias module:ApiClient
|
* @alias module:ApiClient
|
||||||
* @class
|
* @class
|
||||||
*/
|
*/
|
||||||
export default class ApiClient {
|
class ApiClient {
|
||||||
constructor() {
|
constructor() {
|
||||||
/**
|
/**
|
||||||
* The base URL against which to resolve every API call's (relative) path.
|
* The base URL against which to resolve every API call's (relative) path.
|
||||||
@ -225,43 +225,6 @@ export default class ApiClient {
|
|||||||
return newParams;
|
return newParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Enumeration of collection format separator strategies.
|
|
||||||
* @enum {String}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static CollectionFormatEnum = {
|
|
||||||
/**
|
|
||||||
* Comma-separated values. Value: <code>csv</code>
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
CSV: ',',
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Space-separated values. Value: <code>ssv</code>
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
SSV: ' ',
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Tab-separated values. Value: <code>tsv</code>
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
TSV: '\t',
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Pipe(|)-separated values. Value: <code>pipes</code>
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
PIPES: '|',
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Native array. Value: <code>multi</code>
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
MULTI: 'multi'
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds a string representation of an array-type actual parameter, according to the given collection format.
|
* Builds a string representation of an array-type actual parameter, according to the given collection format.
|
||||||
* @param {Array} param An array parameter.
|
* @param {Array} param An array parameter.
|
||||||
@ -581,8 +544,46 @@ export default class ApiClient {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enumeration of collection format separator strategies.
|
||||||
|
* @enum {String}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
ApiClient.CollectionFormatEnum = {
|
||||||
|
/**
|
||||||
|
* Comma-separated values. Value: <code>csv</code>
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
CSV: ',',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Space-separated values. Value: <code>ssv</code>
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
SSV: ' ',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tab-separated values. Value: <code>tsv</code>
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
TSV: '\t',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pipe(|)-separated values. Value: <code>pipes</code>
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
PIPES: '|',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Native array. Value: <code>multi</code>
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
MULTI: 'multi'
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default API client implementation.
|
* The default API client implementation.
|
||||||
* @type {module:ApiClient}
|
* @type {module:ApiClient}
|
||||||
*/
|
*/
|
||||||
ApiClient.instance = new ApiClient();
|
ApiClient.instance = new ApiClient();
|
||||||
|
export default ApiClient;
|
@ -68,7 +68,7 @@ export default class FakeApi {
|
|||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = [];
|
||||||
let accepts = ['*/*'];
|
let accepts = ['*/*'];
|
||||||
let returnType = Boolean;
|
let returnType = 'Boolean';
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/boolean', 'POST',
|
'/fake/outer/boolean', 'POST',
|
||||||
@ -150,7 +150,7 @@ export default class FakeApi {
|
|||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = [];
|
||||||
let accepts = ['*/*'];
|
let accepts = ['*/*'];
|
||||||
let returnType = Number;
|
let returnType = 'Number';
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/number', 'POST',
|
'/fake/outer/number', 'POST',
|
||||||
@ -191,7 +191,7 @@ export default class FakeApi {
|
|||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = [];
|
||||||
let accepts = ['*/*'];
|
let accepts = ['*/*'];
|
||||||
let returnType = String;
|
let returnType = 'String';
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/fake/outer/string', 'POST',
|
'/fake/outer/string', 'POST',
|
||||||
|
@ -1,82 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from "../ApiClient";
|
|
||||||
import Client from '../model/Client';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fake_classname_tags123 service.
|
|
||||||
* @module api/Fake_classname_tags123Api
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
export default class Fake_classname_tags123Api {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a new Fake_classname_tags123Api.
|
|
||||||
* @alias module:api/Fake_classname_tags123Api
|
|
||||||
* @class
|
|
||||||
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
||||||
* default to {@link module:ApiClient#instance} if unspecified.
|
|
||||||
*/
|
|
||||||
constructor(apiClient) {
|
|
||||||
this.apiClient = apiClient || ApiClient.instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Callback function to receive the result of the testClassname operation.
|
|
||||||
* @callback module:api/Fake_classname_tags123Api~testClassnameCallback
|
|
||||||
* @param {String} error Error message, if any.
|
|
||||||
* @param {module:model/Client} data The data returned by the service call.
|
|
||||||
* @param {String} response The complete HTTP response.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* To test class name in snake case
|
|
||||||
* @param {module:model/Client} body client model
|
|
||||||
* @param {module:api/Fake_classname_tags123Api~testClassnameCallback} callback The callback function, accepting three arguments: error, data, response
|
|
||||||
* data is of type: {@link module:model/Client}
|
|
||||||
*/
|
|
||||||
testClassname(body, callback) {
|
|
||||||
let postBody = body;
|
|
||||||
|
|
||||||
// verify the required parameter 'body' is set
|
|
||||||
if (body === undefined || body === null) {
|
|
||||||
throw new Error("Missing the required parameter 'body' when calling testClassname");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
let pathParams = {
|
|
||||||
};
|
|
||||||
let queryParams = {
|
|
||||||
};
|
|
||||||
let headerParams = {
|
|
||||||
};
|
|
||||||
let formParams = {
|
|
||||||
};
|
|
||||||
|
|
||||||
let authNames = ['api_key_query'];
|
|
||||||
let contentTypes = ['application/json'];
|
|
||||||
let accepts = ['application/json'];
|
|
||||||
let returnType = Client;
|
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
|
||||||
'/fake_classname_test', 'PATCH',
|
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
|
||||||
authNames, contentTypes, accepts, returnType, callback
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -109,7 +109,7 @@ export default class StoreApi {
|
|||||||
let authNames = ['api_key'];
|
let authNames = ['api_key'];
|
||||||
let contentTypes = [];
|
let contentTypes = [];
|
||||||
let accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
let returnType = {String: Number};
|
let returnType = {'String': 'Number'};
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/store/inventory', 'GET',
|
'/store/inventory', 'GET',
|
||||||
|
@ -297,7 +297,7 @@ export default class UserApi {
|
|||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = [];
|
let contentTypes = [];
|
||||||
let accepts = ['application/xml', 'application/json'];
|
let accepts = ['application/xml', 'application/json'];
|
||||||
let returnType = String;
|
let returnType = 'String';
|
||||||
|
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/user/login', 'GET',
|
'/user/login', 'GET',
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The AdditionalPropertiesClass model module.
|
* The AdditionalPropertiesClass model module.
|
||||||
* @module model/AdditionalPropertiesClass
|
* @module model/AdditionalPropertiesClass
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class AdditionalPropertiesClass {
|
class AdditionalPropertiesClass {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>AdditionalPropertiesClass</code>.
|
* Constructs a new <code>AdditionalPropertiesClass</code>.
|
||||||
* @alias module:model/AdditionalPropertiesClass
|
* @alias module:model/AdditionalPropertiesClass
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
AdditionalPropertiesClass.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>AdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/AdditionalPropertiesClass} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/AdditionalPropertiesClass} The populated <code>AdditionalPropertiesClass</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>AdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/AdditionalPropertiesClass} obj Optional instance to populate.
|
||||||
|
* @return {module:model/AdditionalPropertiesClass} The populated <code>AdditionalPropertiesClass</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new AdditionalPropertiesClass();
|
obj = obj || new AdditionalPropertiesClass();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('map_property')) {
|
if (data.hasOwnProperty('map_property')) {
|
||||||
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
|
obj['map_property'] = ApiClient.convertToType(data['map_property'], {'String': 'String'});
|
||||||
}
|
}
|
||||||
@ -66,22 +57,23 @@ export default class AdditionalPropertiesClass {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, String>} map_property
|
|
||||||
*/
|
|
||||||
map_property = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, Object.<String, String>>} map_of_map_property
|
|
||||||
*/
|
|
||||||
map_of_map_property = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Object.<String, String>} map_property
|
||||||
|
*/
|
||||||
|
AdditionalPropertiesClass.prototype['map_property'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Object.<String, Object.<String, String>>} map_of_map_property
|
||||||
|
*/
|
||||||
|
AdditionalPropertiesClass.prototype['map_of_map_property'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default AdditionalPropertiesClass;
|
||||||
|
|
||||||
|
@ -11,52 +11,44 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Animal model module.
|
* The Animal model module.
|
||||||
* @module model/Animal
|
* @module model/Animal
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Animal {
|
class Animal {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Animal</code>.
|
* Constructs a new <code>Animal</code>.
|
||||||
* @alias module:model/Animal
|
* @alias module:model/Animal
|
||||||
* @class
|
* @param className {String}
|
||||||
* @param className {String}
|
*/
|
||||||
*/
|
constructor(className) {
|
||||||
|
|
||||||
constructor(className) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this['className'] = className;
|
|
||||||
|
|
||||||
|
|
||||||
|
Animal.initialize(this, className);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Animal</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Animal} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Animal} The populated <code>Animal</code> instance.
|
static initialize(obj, className) {
|
||||||
*/
|
obj['className'] = className;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Animal</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Animal} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Animal} The populated <code>Animal</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Animal();
|
obj = obj || new Animal();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('className')) {
|
if (data.hasOwnProperty('className')) {
|
||||||
obj['className'] = ApiClient.convertToType(data['className'], 'String');
|
obj['className'] = ApiClient.convertToType(data['className'], 'String');
|
||||||
}
|
}
|
||||||
@ -67,23 +59,24 @@ export default class Animal {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} className
|
|
||||||
*/
|
|
||||||
className = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} color
|
|
||||||
* @default 'red'
|
|
||||||
*/
|
|
||||||
color = 'red';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} className
|
||||||
|
*/
|
||||||
|
Animal.prototype['className'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} color
|
||||||
|
* @default 'red'
|
||||||
|
*/
|
||||||
|
Animal.prototype['color'] = 'red';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Animal;
|
||||||
|
|
||||||
|
@ -11,54 +11,47 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import Animal from './Animal';
|
import Animal from './Animal';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The AnimalFarm model module.
|
* The AnimalFarm model module.
|
||||||
* @module model/AnimalFarm
|
* @module model/AnimalFarm
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class AnimalFarm extends Array {
|
class AnimalFarm extends Array {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>AnimalFarm</code>.
|
* Constructs a new <code>AnimalFarm</code>.
|
||||||
* @alias module:model/AnimalFarm
|
* @alias module:model/AnimalFarm
|
||||||
* @class
|
* @extends Array
|
||||||
* @extends Array
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
AnimalFarm.initialize(this);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>AnimalFarm</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/AnimalFarm} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>AnimalFarm</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/AnimalFarm} obj Optional instance to populate.
|
||||||
|
* @return {module:model/AnimalFarm} The populated <code>AnimalFarm</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new AnimalFarm();
|
obj = obj || new AnimalFarm();
|
||||||
|
|
||||||
ApiClient.constructFromObject(data, obj, 'Animal');
|
ApiClient.constructFromObject(data, obj, 'Animal');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -66,13 +59,12 @@ export default class AnimalFarm extends Array {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default AnimalFarm;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ApiResponse model module.
|
* The ApiResponse model module.
|
||||||
* @module model/ApiResponse
|
* @module model/ApiResponse
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class ApiResponse {
|
class ApiResponse {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ApiResponse</code>.
|
* Constructs a new <code>ApiResponse</code>.
|
||||||
* @alias module:model/ApiResponse
|
* @alias module:model/ApiResponse
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ApiResponse.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/ApiResponse} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/ApiResponse} The populated <code>ApiResponse</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>ApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/ApiResponse} obj Optional instance to populate.
|
||||||
|
* @return {module:model/ApiResponse} The populated <code>ApiResponse</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new ApiResponse();
|
obj = obj || new ApiResponse();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('code')) {
|
if (data.hasOwnProperty('code')) {
|
||||||
obj['code'] = ApiClient.convertToType(data['code'], 'Number');
|
obj['code'] = ApiClient.convertToType(data['code'], 'Number');
|
||||||
}
|
}
|
||||||
@ -69,26 +60,28 @@ export default class ApiResponse {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} code
|
|
||||||
*/
|
|
||||||
code = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} type
|
|
||||||
*/
|
|
||||||
type = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} message
|
|
||||||
*/
|
|
||||||
message = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} code
|
||||||
|
*/
|
||||||
|
ApiResponse.prototype['code'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} type
|
||||||
|
*/
|
||||||
|
ApiResponse.prototype['type'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} message
|
||||||
|
*/
|
||||||
|
ApiResponse.prototype['message'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default ApiResponse;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ArrayOfArrayOfNumberOnly model module.
|
* The ArrayOfArrayOfNumberOnly model module.
|
||||||
* @module model/ArrayOfArrayOfNumberOnly
|
* @module model/ArrayOfArrayOfNumberOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class ArrayOfArrayOfNumberOnly {
|
class ArrayOfArrayOfNumberOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
|
* Constructs a new <code>ArrayOfArrayOfNumberOnly</code>.
|
||||||
* @alias module:model/ArrayOfArrayOfNumberOnly
|
* @alias module:model/ArrayOfArrayOfNumberOnly
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ArrayOfArrayOfNumberOnly.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ArrayOfArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/ArrayOfArrayOfNumberOnly} The populated <code>ArrayOfArrayOfNumberOnly</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>ArrayOfArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/ArrayOfArrayOfNumberOnly} obj Optional instance to populate.
|
||||||
|
* @return {module:model/ArrayOfArrayOfNumberOnly} The populated <code>ArrayOfArrayOfNumberOnly</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new ArrayOfArrayOfNumberOnly();
|
obj = obj || new ArrayOfArrayOfNumberOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('ArrayArrayNumber')) {
|
if (data.hasOwnProperty('ArrayArrayNumber')) {
|
||||||
obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
|
obj['ArrayArrayNumber'] = ApiClient.convertToType(data['ArrayArrayNumber'], [['Number']]);
|
||||||
}
|
}
|
||||||
@ -63,18 +54,18 @@ export default class ArrayOfArrayOfNumberOnly {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Array.<Number>>} ArrayArrayNumber
|
|
||||||
*/
|
|
||||||
ArrayArrayNumber = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<Array.<Number>>} ArrayArrayNumber
|
||||||
|
*/
|
||||||
|
ArrayOfArrayOfNumberOnly.prototype['ArrayArrayNumber'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default ArrayOfArrayOfNumberOnly;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ArrayOfNumberOnly model module.
|
* The ArrayOfNumberOnly model module.
|
||||||
* @module model/ArrayOfNumberOnly
|
* @module model/ArrayOfNumberOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class ArrayOfNumberOnly {
|
class ArrayOfNumberOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ArrayOfNumberOnly</code>.
|
* Constructs a new <code>ArrayOfNumberOnly</code>.
|
||||||
* @alias module:model/ArrayOfNumberOnly
|
* @alias module:model/ArrayOfNumberOnly
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ArrayOfNumberOnly.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/ArrayOfNumberOnly} The populated <code>ArrayOfNumberOnly</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>ArrayOfNumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/ArrayOfNumberOnly} obj Optional instance to populate.
|
||||||
|
* @return {module:model/ArrayOfNumberOnly} The populated <code>ArrayOfNumberOnly</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new ArrayOfNumberOnly();
|
obj = obj || new ArrayOfNumberOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('ArrayNumber')) {
|
if (data.hasOwnProperty('ArrayNumber')) {
|
||||||
obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
|
obj['ArrayNumber'] = ApiClient.convertToType(data['ArrayNumber'], ['Number']);
|
||||||
}
|
}
|
||||||
@ -63,18 +54,18 @@ export default class ArrayOfNumberOnly {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<Number>} ArrayNumber
|
|
||||||
*/
|
|
||||||
ArrayNumber = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<Number>} ArrayNumber
|
||||||
|
*/
|
||||||
|
ArrayOfNumberOnly.prototype['ArrayNumber'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default ArrayOfNumberOnly;
|
||||||
|
|
||||||
|
@ -11,52 +11,43 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import ReadOnlyFirst from './ReadOnlyFirst';
|
import ReadOnlyFirst from './ReadOnlyFirst';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ArrayTest model module.
|
* The ArrayTest model module.
|
||||||
* @module model/ArrayTest
|
* @module model/ArrayTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class ArrayTest {
|
class ArrayTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ArrayTest</code>.
|
* Constructs a new <code>ArrayTest</code>.
|
||||||
* @alias module:model/ArrayTest
|
* @alias module:model/ArrayTest
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ArrayTest.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ArrayTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/ArrayTest} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/ArrayTest} The populated <code>ArrayTest</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>ArrayTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/ArrayTest} obj Optional instance to populate.
|
||||||
|
* @return {module:model/ArrayTest} The populated <code>ArrayTest</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new ArrayTest();
|
obj = obj || new ArrayTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('array_of_string')) {
|
if (data.hasOwnProperty('array_of_string')) {
|
||||||
obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']);
|
obj['array_of_string'] = ApiClient.convertToType(data['array_of_string'], ['String']);
|
||||||
}
|
}
|
||||||
@ -70,26 +61,28 @@ export default class ArrayTest {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<String>} array_of_string
|
|
||||||
*/
|
|
||||||
array_of_string = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Array.<Array.<Number>>} array_array_of_integer
|
|
||||||
*/
|
|
||||||
array_array_of_integer = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Array.<Array.<module:model/ReadOnlyFirst>>} array_array_of_model
|
|
||||||
*/
|
|
||||||
array_array_of_model = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<String>} array_of_string
|
||||||
|
*/
|
||||||
|
ArrayTest.prototype['array_of_string'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<Array.<Number>>} array_array_of_integer
|
||||||
|
*/
|
||||||
|
ArrayTest.prototype['array_array_of_integer'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<Array.<module:model/ReadOnlyFirst>>} array_array_of_model
|
||||||
|
*/
|
||||||
|
ArrayTest.prototype['array_array_of_model'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default ArrayTest;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Capitalization model module.
|
* The Capitalization model module.
|
||||||
* @module model/Capitalization
|
* @module model/Capitalization
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Capitalization {
|
class Capitalization {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Capitalization</code>.
|
* Constructs a new <code>Capitalization</code>.
|
||||||
* @alias module:model/Capitalization
|
* @alias module:model/Capitalization
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Capitalization.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Capitalization</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Capitalization} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Capitalization} The populated <code>Capitalization</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Capitalization</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Capitalization} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Capitalization} The populated <code>Capitalization</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Capitalization();
|
obj = obj || new Capitalization();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('smallCamel')) {
|
if (data.hasOwnProperty('smallCamel')) {
|
||||||
obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String');
|
obj['smallCamel'] = ApiClient.convertToType(data['smallCamel'], 'String');
|
||||||
}
|
}
|
||||||
@ -78,39 +69,44 @@ export default class Capitalization {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} smallCamel
|
|
||||||
*/
|
|
||||||
smallCamel = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} CapitalCamel
|
|
||||||
*/
|
|
||||||
CapitalCamel = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} small_Snake
|
|
||||||
*/
|
|
||||||
small_Snake = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Capital_Snake
|
|
||||||
*/
|
|
||||||
Capital_Snake = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} SCA_ETH_Flow_Points
|
|
||||||
*/
|
|
||||||
SCA_ETH_Flow_Points = undefined;
|
|
||||||
/**
|
|
||||||
* Name of the pet
|
|
||||||
* @member {String} ATT_NAME
|
|
||||||
*/
|
|
||||||
ATT_NAME = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} smallCamel
|
||||||
|
*/
|
||||||
|
Capitalization.prototype['smallCamel'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} CapitalCamel
|
||||||
|
*/
|
||||||
|
Capitalization.prototype['CapitalCamel'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} small_Snake
|
||||||
|
*/
|
||||||
|
Capitalization.prototype['small_Snake'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} Capital_Snake
|
||||||
|
*/
|
||||||
|
Capitalization.prototype['Capital_Snake'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} SCA_ETH_Flow_Points
|
||||||
|
*/
|
||||||
|
Capitalization.prototype['SCA_ETH_Flow_Points'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the pet
|
||||||
|
* @member {String} ATT_NAME
|
||||||
|
*/
|
||||||
|
Capitalization.prototype['ATT_NAME'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Capitalization;
|
||||||
|
|
||||||
|
@ -11,53 +11,45 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import Animal from './Animal';
|
import Animal from './Animal';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Cat model module.
|
* The Cat model module.
|
||||||
* @module model/Cat
|
* @module model/Cat
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Cat {
|
class Cat {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Cat</code>.
|
* Constructs a new <code>Cat</code>.
|
||||||
* @alias module:model/Cat
|
* @alias module:model/Cat
|
||||||
* @class
|
* @extends module:model/Animal
|
||||||
* @extends module:model/Animal
|
* @implements module:model/Animal
|
||||||
* @implements module:model/Animal
|
* @param className {}
|
||||||
* @param className {}
|
*/
|
||||||
*/
|
constructor(className) {
|
||||||
|
Animal.initialize(this, className);
|
||||||
constructor(className) {
|
Cat.initialize(this, className);
|
||||||
|
|
||||||
|
|
||||||
Animal.call(this, className);
|
|
||||||
Animal.call(this, className);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Cat</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Cat} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Cat} The populated <code>Cat</code> instance.
|
static initialize(obj, className) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Cat</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Cat} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Cat} The populated <code>Cat</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Cat();
|
obj = obj || new Cat();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Animal.constructFromObject(data, obj);
|
Animal.constructFromObject(data, obj);
|
||||||
Animal.constructFromObject(data, obj);
|
Animal.constructFromObject(data, obj);
|
||||||
|
|
||||||
@ -68,29 +60,28 @@ export default class Cat {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Boolean} declawed
|
|
||||||
*/
|
|
||||||
declawed = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
// Implement Animal interface:
|
|
||||||
/**
|
|
||||||
* @member {String} className
|
|
||||||
*/
|
|
||||||
className = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} color
|
|
||||||
* @default 'red'
|
|
||||||
*/
|
|
||||||
color = 'red';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Boolean} declawed
|
||||||
|
*/
|
||||||
|
Cat.prototype['declawed'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
// Implement Animal interface:
|
||||||
|
/**
|
||||||
|
* @member {String} className
|
||||||
|
*/
|
||||||
|
Animal.prototype['className'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {String} color
|
||||||
|
* @default 'red'
|
||||||
|
*/
|
||||||
|
Animal.prototype['color'] = 'red';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Cat;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Category model module.
|
* The Category model module.
|
||||||
* @module model/Category
|
* @module model/Category
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Category {
|
class Category {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Category</code>.
|
* Constructs a new <code>Category</code>.
|
||||||
* @alias module:model/Category
|
* @alias module:model/Category
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Category.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Category</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Category} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Category} The populated <code>Category</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Category</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Category} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Category} The populated <code>Category</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Category();
|
obj = obj || new Category();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
}
|
}
|
||||||
@ -66,22 +57,23 @@ export default class Category {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} id
|
|
||||||
*/
|
|
||||||
id = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} name
|
|
||||||
*/
|
|
||||||
name = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} id
|
||||||
|
*/
|
||||||
|
Category.prototype['id'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} name
|
||||||
|
*/
|
||||||
|
Category.prototype['name'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Category;
|
||||||
|
|
||||||
|
@ -11,52 +11,43 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ClassModel model module.
|
* The ClassModel model module.
|
||||||
* @module model/ClassModel
|
* @module model/ClassModel
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class ClassModel {
|
class ClassModel {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ClassModel</code>.
|
* Constructs a new <code>ClassModel</code>.
|
||||||
* Model for testing model with \"_class\" property
|
* Model for testing model with \"_class\" property
|
||||||
* @alias module:model/ClassModel
|
* @alias module:model/ClassModel
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ClassModel.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ClassModel</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/ClassModel} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/ClassModel} The populated <code>ClassModel</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>ClassModel</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/ClassModel} obj Optional instance to populate.
|
||||||
|
* @return {module:model/ClassModel} The populated <code>ClassModel</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new ClassModel();
|
obj = obj || new ClassModel();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('_class')) {
|
if (data.hasOwnProperty('_class')) {
|
||||||
obj['_class'] = ApiClient.convertToType(data['_class'], 'String');
|
obj['_class'] = ApiClient.convertToType(data['_class'], 'String');
|
||||||
}
|
}
|
||||||
@ -64,18 +55,18 @@ export default class ClassModel {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} _class
|
|
||||||
*/
|
|
||||||
_class = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} _class
|
||||||
|
*/
|
||||||
|
ClassModel.prototype['_class'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default ClassModel;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Client model module.
|
* The Client model module.
|
||||||
* @module model/Client
|
* @module model/Client
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Client {
|
class Client {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Client</code>.
|
* Constructs a new <code>Client</code>.
|
||||||
* @alias module:model/Client
|
* @alias module:model/Client
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Client.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Client</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Client} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Client} The populated <code>Client</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Client</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Client} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Client} The populated <code>Client</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Client();
|
obj = obj || new Client();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('client')) {
|
if (data.hasOwnProperty('client')) {
|
||||||
obj['client'] = ApiClient.convertToType(data['client'], 'String');
|
obj['client'] = ApiClient.convertToType(data['client'], 'String');
|
||||||
}
|
}
|
||||||
@ -63,18 +54,18 @@ export default class Client {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} client
|
|
||||||
*/
|
|
||||||
client = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} client
|
||||||
|
*/
|
||||||
|
Client.prototype['client'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Client;
|
||||||
|
|
||||||
|
@ -11,53 +11,45 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import Animal from './Animal';
|
import Animal from './Animal';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Dog model module.
|
* The Dog model module.
|
||||||
* @module model/Dog
|
* @module model/Dog
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Dog {
|
class Dog {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Dog</code>.
|
* Constructs a new <code>Dog</code>.
|
||||||
* @alias module:model/Dog
|
* @alias module:model/Dog
|
||||||
* @class
|
* @extends module:model/Animal
|
||||||
* @extends module:model/Animal
|
* @implements module:model/Animal
|
||||||
* @implements module:model/Animal
|
* @param className {}
|
||||||
* @param className {}
|
*/
|
||||||
*/
|
constructor(className) {
|
||||||
|
Animal.initialize(this, className);
|
||||||
constructor(className) {
|
Dog.initialize(this, className);
|
||||||
|
|
||||||
|
|
||||||
Animal.call(this, className);
|
|
||||||
Animal.call(this, className);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Dog</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Dog} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Dog} The populated <code>Dog</code> instance.
|
static initialize(obj, className) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Dog</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Dog} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Dog} The populated <code>Dog</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Dog();
|
obj = obj || new Dog();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Animal.constructFromObject(data, obj);
|
Animal.constructFromObject(data, obj);
|
||||||
Animal.constructFromObject(data, obj);
|
Animal.constructFromObject(data, obj);
|
||||||
|
|
||||||
@ -68,29 +60,28 @@ export default class Dog {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} breed
|
|
||||||
*/
|
|
||||||
breed = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
// Implement Animal interface:
|
|
||||||
/**
|
|
||||||
* @member {String} className
|
|
||||||
*/
|
|
||||||
className = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} color
|
|
||||||
* @default 'red'
|
|
||||||
*/
|
|
||||||
color = 'red';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} breed
|
||||||
|
*/
|
||||||
|
Dog.prototype['breed'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
// Implement Animal interface:
|
||||||
|
/**
|
||||||
|
* @member {String} className
|
||||||
|
*/
|
||||||
|
Animal.prototype['className'] = undefined;
|
||||||
|
/**
|
||||||
|
* @member {String} color
|
||||||
|
* @default 'red'
|
||||||
|
*/
|
||||||
|
Animal.prototype['color'] = 'red';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Dog;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EnumArrays model module.
|
* The EnumArrays model module.
|
||||||
* @module model/EnumArrays
|
* @module model/EnumArrays
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class EnumArrays {
|
class EnumArrays {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>EnumArrays</code>.
|
* Constructs a new <code>EnumArrays</code>.
|
||||||
* @alias module:model/EnumArrays
|
* @alias module:model/EnumArrays
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
EnumArrays.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>EnumArrays</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/EnumArrays} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/EnumArrays} The populated <code>EnumArrays</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>EnumArrays</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/EnumArrays} obj Optional instance to populate.
|
||||||
|
* @return {module:model/EnumArrays} The populated <code>EnumArrays</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new EnumArrays();
|
obj = obj || new EnumArrays();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('just_symbol')) {
|
if (data.hasOwnProperty('just_symbol')) {
|
||||||
obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String');
|
obj['just_symbol'] = ApiClient.convertToType(data['just_symbol'], 'String');
|
||||||
}
|
}
|
||||||
@ -66,62 +57,65 @@ export default class EnumArrays {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
|
|
||||||
*/
|
|
||||||
just_symbol = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
|
|
||||||
*/
|
|
||||||
array_enum = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowed values for the <code>just_symbol</code> property.
|
|
||||||
* @enum {String}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static JustSymbolEnum = {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: ">="
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"GREATER_THAN_OR_EQUAL_TO": ">=",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "$"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"DOLLAR": "$"
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowed values for the <code>arrayEnum</code> property.
|
|
||||||
* @enum {String}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static ArrayEnumEnum = {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "fish"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"fish": "fish",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "crab"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"crab": "crab"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {module:model/EnumArrays.JustSymbolEnum} just_symbol
|
||||||
|
*/
|
||||||
|
EnumArrays.prototype['just_symbol'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<module:model/EnumArrays.ArrayEnumEnum>} array_enum
|
||||||
|
*/
|
||||||
|
EnumArrays.prototype['array_enum'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allowed values for the <code>just_symbol</code> property.
|
||||||
|
* @enum {String}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
EnumArrays['JustSymbolEnum'] = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: ">="
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"GREATER_THAN_OR_EQUAL_TO": ">=",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "$"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"DOLLAR": "$"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allowed values for the <code>arrayEnum</code> property.
|
||||||
|
* @enum {String}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
EnumArrays['ArrayEnumEnum'] = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "fish"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"fish": "fish",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "crab"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"crab": "crab"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default EnumArrays;
|
||||||
|
|
||||||
|
@ -11,10 +11,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum class EnumClass.
|
* Enum class EnumClass.
|
||||||
* @enum {}
|
* @enum {}
|
||||||
@ -26,21 +23,21 @@ export default class EnumClass {
|
|||||||
* value: "_abc"
|
* value: "_abc"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
_abc = "_abc";
|
"_abc" = "_abc";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "-efg"
|
* value: "-efg"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
-efg = "-efg";
|
"-efg" = "-efg";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "(xyz)"
|
* value: "(xyz)"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
(xyz) = "(xyz)";
|
"(xyz)" = "(xyz)";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -54,4 +51,3 @@ export default class EnumClass {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,53 +11,45 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import OuterEnum from './OuterEnum';
|
import OuterEnum from './OuterEnum';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The EnumTest model module.
|
* The EnumTest model module.
|
||||||
* @module model/EnumTest
|
* @module model/EnumTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class EnumTest {
|
class EnumTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>EnumTest</code>.
|
* Constructs a new <code>EnumTest</code>.
|
||||||
* @alias module:model/EnumTest
|
* @alias module:model/EnumTest
|
||||||
* @class
|
* @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum}
|
||||||
* @param enumStringRequired {module:model/EnumTest.EnumStringRequiredEnum}
|
*/
|
||||||
*/
|
constructor(enumStringRequired) {
|
||||||
|
|
||||||
constructor(enumStringRequired) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this['enum_string_required'] = enumStringRequired;
|
|
||||||
|
|
||||||
|
|
||||||
|
EnumTest.initialize(this, enumStringRequired);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>EnumTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/EnumTest} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/EnumTest} The populated <code>EnumTest</code> instance.
|
static initialize(obj, enumStringRequired) {
|
||||||
*/
|
obj['enum_string_required'] = enumStringRequired;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>EnumTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/EnumTest} obj Optional instance to populate.
|
||||||
|
* @return {module:model/EnumTest} The populated <code>EnumTest</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new EnumTest();
|
obj = obj || new EnumTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('enum_string')) {
|
if (data.hasOwnProperty('enum_string')) {
|
||||||
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
|
obj['enum_string'] = ApiClient.convertToType(data['enum_string'], 'String');
|
||||||
}
|
}
|
||||||
@ -77,126 +69,134 @@ export default class EnumTest {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {module:model/EnumTest.EnumStringEnum} enum_string
|
|
||||||
*/
|
|
||||||
enum_string = undefined;
|
|
||||||
/**
|
|
||||||
* @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required
|
|
||||||
*/
|
|
||||||
enum_string_required = undefined;
|
|
||||||
/**
|
|
||||||
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
|
|
||||||
*/
|
|
||||||
enum_integer = undefined;
|
|
||||||
/**
|
|
||||||
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
|
|
||||||
*/
|
|
||||||
enum_number = undefined;
|
|
||||||
/**
|
|
||||||
* @member {module:model/OuterEnum} outerEnum
|
|
||||||
*/
|
|
||||||
outerEnum = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowed values for the <code>enum_string</code> property.
|
|
||||||
* @enum {String}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static EnumStringEnum = {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "UPPER"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"UPPER": "UPPER",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "lower"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"lower": "lower",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: ""
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"empty": ""
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowed values for the <code>enum_string_required</code> property.
|
|
||||||
* @enum {String}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static EnumStringRequiredEnum = {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "UPPER"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"UPPER": "UPPER",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "lower"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"lower": "lower",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: ""
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"empty": ""
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowed values for the <code>enum_integer</code> property.
|
|
||||||
* @enum {Number}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static EnumIntegerEnum = {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: 1
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"1": 1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: -1
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"-1": -1
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowed values for the <code>enum_number</code> property.
|
|
||||||
* @enum {Number}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static EnumNumberEnum = {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: 1.1
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"1.1": 1.1,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: -1.2
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"-1.2": -1.2
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {module:model/EnumTest.EnumStringEnum} enum_string
|
||||||
|
*/
|
||||||
|
EnumTest.prototype['enum_string'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {module:model/EnumTest.EnumStringRequiredEnum} enum_string_required
|
||||||
|
*/
|
||||||
|
EnumTest.prototype['enum_string_required'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {module:model/EnumTest.EnumIntegerEnum} enum_integer
|
||||||
|
*/
|
||||||
|
EnumTest.prototype['enum_integer'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {module:model/EnumTest.EnumNumberEnum} enum_number
|
||||||
|
*/
|
||||||
|
EnumTest.prototype['enum_number'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {module:model/OuterEnum} outerEnum
|
||||||
|
*/
|
||||||
|
EnumTest.prototype['outerEnum'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allowed values for the <code>enum_string</code> property.
|
||||||
|
* @enum {String}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
EnumTest['EnumStringEnum'] = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "UPPER"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"UPPER": "UPPER",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "lower"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"lower": "lower",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: ""
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"empty": ""
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allowed values for the <code>enum_string_required</code> property.
|
||||||
|
* @enum {String}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
EnumTest['EnumStringRequiredEnum'] = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "UPPER"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"UPPER": "UPPER",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "lower"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"lower": "lower",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: ""
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"empty": ""
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allowed values for the <code>enum_integer</code> property.
|
||||||
|
* @enum {Number}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
EnumTest['EnumIntegerEnum'] = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: 1
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"1": 1,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: -1
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"-1": -1
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allowed values for the <code>enum_number</code> property.
|
||||||
|
* @enum {Number}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
EnumTest['EnumNumberEnum'] = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: 1.1
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"1.1": 1.1,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: -1.2
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"-1.2": -1.2
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default EnumTest;
|
||||||
|
|
||||||
|
@ -11,55 +11,50 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The FormatTest model module.
|
* The FormatTest model module.
|
||||||
* @module model/FormatTest
|
* @module model/FormatTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class FormatTest {
|
class FormatTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>FormatTest</code>.
|
* Constructs a new <code>FormatTest</code>.
|
||||||
* @alias module:model/FormatTest
|
* @alias module:model/FormatTest
|
||||||
* @class
|
* @param _number {Number}
|
||||||
* @param _number {Number}
|
* @param _byte {Blob}
|
||||||
* @param _byte {Blob}
|
* @param _date {Date}
|
||||||
* @param _date {Date}
|
* @param password {String}
|
||||||
* @param password {String}
|
*/
|
||||||
*/
|
constructor(_number, _byte, _date, password) {
|
||||||
|
|
||||||
constructor(_number, _byte, _date, password) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this['number'] = _number;this['byte'] = _byte;this['date'] = _date;this['password'] = password;
|
|
||||||
|
|
||||||
|
|
||||||
|
FormatTest.initialize(this, _number, _byte, _date, password);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>FormatTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/FormatTest} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/FormatTest} The populated <code>FormatTest</code> instance.
|
static initialize(obj, _number, _byte, _date, password) {
|
||||||
*/
|
obj['number'] = _number;
|
||||||
|
obj['byte'] = _byte;
|
||||||
|
obj['date'] = _date;
|
||||||
|
obj['password'] = password;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>FormatTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/FormatTest} obj Optional instance to populate.
|
||||||
|
* @return {module:model/FormatTest} The populated <code>FormatTest</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new FormatTest();
|
obj = obj || new FormatTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('integer')) {
|
if (data.hasOwnProperty('integer')) {
|
||||||
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
|
obj['integer'] = ApiClient.convertToType(data['integer'], 'Number');
|
||||||
}
|
}
|
||||||
@ -103,66 +98,78 @@ export default class FormatTest {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} integer
|
|
||||||
*/
|
|
||||||
integer = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} int32
|
|
||||||
*/
|
|
||||||
int32 = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} int64
|
|
||||||
*/
|
|
||||||
int64 = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} number
|
|
||||||
*/
|
|
||||||
number = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} float
|
|
||||||
*/
|
|
||||||
float = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} double
|
|
||||||
*/
|
|
||||||
double = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} string
|
|
||||||
*/
|
|
||||||
string = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Blob} byte
|
|
||||||
*/
|
|
||||||
byte = undefined;
|
|
||||||
/**
|
|
||||||
* @member {File} binary
|
|
||||||
*/
|
|
||||||
binary = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Date} date
|
|
||||||
*/
|
|
||||||
date = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Date} dateTime
|
|
||||||
*/
|
|
||||||
dateTime = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} uuid
|
|
||||||
*/
|
|
||||||
uuid = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} password
|
|
||||||
*/
|
|
||||||
password = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} integer
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['integer'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} int32
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['int32'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} int64
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['int64'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} number
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['number'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} float
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['float'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} double
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['double'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} string
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['string'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Blob} byte
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['byte'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {File} binary
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['binary'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Date} date
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['date'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Date} dateTime
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['dateTime'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} uuid
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['uuid'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} password
|
||||||
|
*/
|
||||||
|
FormatTest.prototype['password'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default FormatTest;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The HasOnlyReadOnly model module.
|
* The HasOnlyReadOnly model module.
|
||||||
* @module model/HasOnlyReadOnly
|
* @module model/HasOnlyReadOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class HasOnlyReadOnly {
|
class HasOnlyReadOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>HasOnlyReadOnly</code>.
|
* Constructs a new <code>HasOnlyReadOnly</code>.
|
||||||
* @alias module:model/HasOnlyReadOnly
|
* @alias module:model/HasOnlyReadOnly
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HasOnlyReadOnly.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>HasOnlyReadOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/HasOnlyReadOnly} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/HasOnlyReadOnly} The populated <code>HasOnlyReadOnly</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>HasOnlyReadOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/HasOnlyReadOnly} obj Optional instance to populate.
|
||||||
|
* @return {module:model/HasOnlyReadOnly} The populated <code>HasOnlyReadOnly</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new HasOnlyReadOnly();
|
obj = obj || new HasOnlyReadOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('bar')) {
|
if (data.hasOwnProperty('bar')) {
|
||||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||||
}
|
}
|
||||||
@ -66,22 +57,23 @@ export default class HasOnlyReadOnly {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} bar
|
|
||||||
*/
|
|
||||||
bar = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} foo
|
|
||||||
*/
|
|
||||||
foo = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} bar
|
||||||
|
*/
|
||||||
|
HasOnlyReadOnly.prototype['bar'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} foo
|
||||||
|
*/
|
||||||
|
HasOnlyReadOnly.prototype['foo'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default HasOnlyReadOnly;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The List model module.
|
* The List model module.
|
||||||
* @module model/List
|
* @module model/List
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class List {
|
class List {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>List</code>.
|
* Constructs a new <code>List</code>.
|
||||||
* @alias module:model/List
|
* @alias module:model/List
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
List.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>List</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/List} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/List} The populated <code>List</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>List</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/List} obj Optional instance to populate.
|
||||||
|
* @return {module:model/List} The populated <code>List</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new List();
|
obj = obj || new List();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('123-list')) {
|
if (data.hasOwnProperty('123-list')) {
|
||||||
obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
|
obj['123-list'] = ApiClient.convertToType(data['123-list'], 'String');
|
||||||
}
|
}
|
||||||
@ -63,18 +54,18 @@ export default class List {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} 123-list
|
|
||||||
*/
|
|
||||||
123-list = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} 123-list
|
||||||
|
*/
|
||||||
|
List.prototype['123-list'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default List;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The MapTest model module.
|
* The MapTest model module.
|
||||||
* @module model/MapTest
|
* @module model/MapTest
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class MapTest {
|
class MapTest {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>MapTest</code>.
|
* Constructs a new <code>MapTest</code>.
|
||||||
* @alias module:model/MapTest
|
* @alias module:model/MapTest
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MapTest.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>MapTest</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/MapTest} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/MapTest} The populated <code>MapTest</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>MapTest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/MapTest} obj Optional instance to populate.
|
||||||
|
* @return {module:model/MapTest} The populated <code>MapTest</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new MapTest();
|
obj = obj || new MapTest();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('map_map_of_string')) {
|
if (data.hasOwnProperty('map_map_of_string')) {
|
||||||
obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
|
obj['map_map_of_string'] = ApiClient.convertToType(data['map_map_of_string'], {'String': {'String': 'String'}});
|
||||||
}
|
}
|
||||||
@ -66,42 +57,44 @@ export default class MapTest {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, Object.<String, String>>} map_map_of_string
|
|
||||||
*/
|
|
||||||
map_map_of_string = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, module:model/MapTest.InnerEnum>} map_of_enum_string
|
|
||||||
*/
|
|
||||||
map_of_enum_string = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowed values for the <code>inner</code> property.
|
|
||||||
* @enum {String}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static InnerEnum = {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "UPPER"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"UPPER": "UPPER",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "lower"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"lower": "lower"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Object.<String, Object.<String, String>>} map_map_of_string
|
||||||
|
*/
|
||||||
|
MapTest.prototype['map_map_of_string'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Object.<String, module:model/MapTest.InnerEnum>} map_of_enum_string
|
||||||
|
*/
|
||||||
|
MapTest.prototype['map_of_enum_string'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allowed values for the <code>inner</code> property.
|
||||||
|
* @enum {String}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
MapTest['InnerEnum'] = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "UPPER"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"UPPER": "UPPER",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "lower"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"lower": "lower"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default MapTest;
|
||||||
|
|
||||||
|
@ -11,52 +11,43 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import Animal from './Animal';
|
import Animal from './Animal';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The MixedPropertiesAndAdditionalPropertiesClass model module.
|
* The MixedPropertiesAndAdditionalPropertiesClass model module.
|
||||||
* @module model/MixedPropertiesAndAdditionalPropertiesClass
|
* @module model/MixedPropertiesAndAdditionalPropertiesClass
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class MixedPropertiesAndAdditionalPropertiesClass {
|
class MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
|
* Constructs a new <code>MixedPropertiesAndAdditionalPropertiesClass</code>.
|
||||||
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
|
* @alias module:model/MixedPropertiesAndAdditionalPropertiesClass
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>MixedPropertiesAndAdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated <code>MixedPropertiesAndAdditionalPropertiesClass</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>MixedPropertiesAndAdditionalPropertiesClass</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/MixedPropertiesAndAdditionalPropertiesClass} obj Optional instance to populate.
|
||||||
|
* @return {module:model/MixedPropertiesAndAdditionalPropertiesClass} The populated <code>MixedPropertiesAndAdditionalPropertiesClass</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new MixedPropertiesAndAdditionalPropertiesClass();
|
obj = obj || new MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('uuid')) {
|
if (data.hasOwnProperty('uuid')) {
|
||||||
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String');
|
||||||
}
|
}
|
||||||
@ -70,26 +61,28 @@ export default class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} uuid
|
|
||||||
*/
|
|
||||||
uuid = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Date} dateTime
|
|
||||||
*/
|
|
||||||
dateTime = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Object.<String, module:model/Animal>} map
|
|
||||||
*/
|
|
||||||
map = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} uuid
|
||||||
|
*/
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass.prototype['uuid'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Date} dateTime
|
||||||
|
*/
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass.prototype['dateTime'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Object.<String, module:model/Animal>} map
|
||||||
|
*/
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass.prototype['map'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default MixedPropertiesAndAdditionalPropertiesClass;
|
||||||
|
|
||||||
|
@ -11,52 +11,43 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Model200Response model module.
|
* The Model200Response model module.
|
||||||
* @module model/Model200Response
|
* @module model/Model200Response
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Model200Response {
|
class Model200Response {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Model200Response</code>.
|
* Constructs a new <code>Model200Response</code>.
|
||||||
* Model for testing model name starting with number
|
* Model for testing model name starting with number
|
||||||
* @alias module:model/Model200Response
|
* @alias module:model/Model200Response
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Model200Response.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Model200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Model200Response} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Model200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Model200Response} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Model200Response} The populated <code>Model200Response</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Model200Response();
|
obj = obj || new Model200Response();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('name')) {
|
if (data.hasOwnProperty('name')) {
|
||||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||||
}
|
}
|
||||||
@ -67,22 +58,23 @@ export default class Model200Response {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} name
|
|
||||||
*/
|
|
||||||
name = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} class
|
|
||||||
*/
|
|
||||||
class = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} name
|
||||||
|
*/
|
||||||
|
Model200Response.prototype['name'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} class
|
||||||
|
*/
|
||||||
|
Model200Response.prototype['class'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Model200Response;
|
||||||
|
|
||||||
|
@ -11,52 +11,43 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ModelReturn model module.
|
* The ModelReturn model module.
|
||||||
* @module model/ModelReturn
|
* @module model/ModelReturn
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class ModelReturn {
|
class ModelReturn {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ModelReturn</code>.
|
* Constructs a new <code>ModelReturn</code>.
|
||||||
* Model for testing reserved words
|
* Model for testing reserved words
|
||||||
* @alias module:model/ModelReturn
|
* @alias module:model/ModelReturn
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ModelReturn.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ModelReturn</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/ModelReturn} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/ModelReturn} The populated <code>ModelReturn</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>ModelReturn</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/ModelReturn} obj Optional instance to populate.
|
||||||
|
* @return {module:model/ModelReturn} The populated <code>ModelReturn</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new ModelReturn();
|
obj = obj || new ModelReturn();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('return')) {
|
if (data.hasOwnProperty('return')) {
|
||||||
obj['return'] = ApiClient.convertToType(data['return'], 'Number');
|
obj['return'] = ApiClient.convertToType(data['return'], 'Number');
|
||||||
}
|
}
|
||||||
@ -64,18 +55,18 @@ export default class ModelReturn {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} return
|
|
||||||
*/
|
|
||||||
return = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} return
|
||||||
|
*/
|
||||||
|
ModelReturn.prototype['return'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default ModelReturn;
|
||||||
|
|
||||||
|
@ -11,53 +11,45 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Name model module.
|
* The Name model module.
|
||||||
* @module model/Name
|
* @module model/Name
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Name {
|
class Name {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Name</code>.
|
* Constructs a new <code>Name</code>.
|
||||||
* Model for testing model name same as property name
|
* Model for testing model name same as property name
|
||||||
* @alias module:model/Name
|
* @alias module:model/Name
|
||||||
* @class
|
* @param name {Number}
|
||||||
* @param name {Number}
|
*/
|
||||||
*/
|
constructor(name) {
|
||||||
|
|
||||||
constructor(name) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this['name'] = name;
|
|
||||||
|
|
||||||
|
|
||||||
|
Name.initialize(this, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Name</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Name} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Name} The populated <code>Name</code> instance.
|
static initialize(obj, name) {
|
||||||
*/
|
obj['name'] = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Name</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Name} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Name} The populated <code>Name</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Name();
|
obj = obj || new Name();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('name')) {
|
if (data.hasOwnProperty('name')) {
|
||||||
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
obj['name'] = ApiClient.convertToType(data['name'], 'Number');
|
||||||
}
|
}
|
||||||
@ -74,30 +66,33 @@ export default class Name {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} name
|
|
||||||
*/
|
|
||||||
name = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} snake_case
|
|
||||||
*/
|
|
||||||
snake_case = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} property
|
|
||||||
*/
|
|
||||||
property = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} 123Number
|
|
||||||
*/
|
|
||||||
123Number = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} name
|
||||||
|
*/
|
||||||
|
Name.prototype['name'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} snake_case
|
||||||
|
*/
|
||||||
|
Name.prototype['snake_case'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} property
|
||||||
|
*/
|
||||||
|
Name.prototype['property'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} 123Number
|
||||||
|
*/
|
||||||
|
Name.prototype['123Number'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Name;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The NumberOnly model module.
|
* The NumberOnly model module.
|
||||||
* @module model/NumberOnly
|
* @module model/NumberOnly
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class NumberOnly {
|
class NumberOnly {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>NumberOnly</code>.
|
* Constructs a new <code>NumberOnly</code>.
|
||||||
* @alias module:model/NumberOnly
|
* @alias module:model/NumberOnly
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
NumberOnly.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>NumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/NumberOnly} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/NumberOnly} The populated <code>NumberOnly</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>NumberOnly</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/NumberOnly} obj Optional instance to populate.
|
||||||
|
* @return {module:model/NumberOnly} The populated <code>NumberOnly</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new NumberOnly();
|
obj = obj || new NumberOnly();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('JustNumber')) {
|
if (data.hasOwnProperty('JustNumber')) {
|
||||||
obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
|
obj['JustNumber'] = ApiClient.convertToType(data['JustNumber'], 'Number');
|
||||||
}
|
}
|
||||||
@ -63,18 +54,18 @@ export default class NumberOnly {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} JustNumber
|
|
||||||
*/
|
|
||||||
JustNumber = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} JustNumber
|
||||||
|
*/
|
||||||
|
NumberOnly.prototype['JustNumber'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default NumberOnly;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Order model module.
|
* The Order model module.
|
||||||
* @module model/Order
|
* @module model/Order
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Order {
|
class Order {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Order</code>.
|
* Constructs a new <code>Order</code>.
|
||||||
* @alias module:model/Order
|
* @alias module:model/Order
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Order.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Order</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Order} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Order} The populated <code>Order</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Order</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Order} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Order} The populated <code>Order</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Order();
|
obj = obj || new Order();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
}
|
}
|
||||||
@ -78,66 +69,72 @@ export default class Order {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} id
|
|
||||||
*/
|
|
||||||
id = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} petId
|
|
||||||
*/
|
|
||||||
petId = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Number} quantity
|
|
||||||
*/
|
|
||||||
quantity = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Date} shipDate
|
|
||||||
*/
|
|
||||||
shipDate = undefined;
|
|
||||||
/**
|
|
||||||
* Order Status
|
|
||||||
* @member {module:model/Order.StatusEnum} status
|
|
||||||
*/
|
|
||||||
status = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Boolean} complete
|
|
||||||
* @default false
|
|
||||||
*/
|
|
||||||
complete = false;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowed values for the <code>status</code> property.
|
|
||||||
* @enum {String}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static StatusEnum = {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "placed"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"placed": "placed",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "approved"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"approved": "approved",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "delivered"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"delivered": "delivered"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} id
|
||||||
|
*/
|
||||||
|
Order.prototype['id'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} petId
|
||||||
|
*/
|
||||||
|
Order.prototype['petId'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} quantity
|
||||||
|
*/
|
||||||
|
Order.prototype['quantity'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Date} shipDate
|
||||||
|
*/
|
||||||
|
Order.prototype['shipDate'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Order Status
|
||||||
|
* @member {module:model/Order.StatusEnum} status
|
||||||
|
*/
|
||||||
|
Order.prototype['status'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Boolean} complete
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
Order.prototype['complete'] = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allowed values for the <code>status</code> property.
|
||||||
|
* @enum {String}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
Order['StatusEnum'] = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "placed"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"placed": "placed",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "approved"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"approved": "approved",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "delivered"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"delivered": "delivered"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Order;
|
||||||
|
|
||||||
|
@ -1,73 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The OuterBoolean model module.
|
|
||||||
* @module model/OuterBoolean
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
export default class OuterBoolean {
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>OuterBoolean</code>.
|
|
||||||
* @alias module:model/OuterBoolean
|
|
||||||
* @class
|
|
||||||
*/
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a <code>OuterBoolean</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
||||||
* @param {module:model/OuterBoolean} obj Optional instance to populate.
|
|
||||||
* @return {module:model/OuterBoolean} The populated <code>OuterBoolean</code> instance.
|
|
||||||
*/
|
|
||||||
static constructFromObject(data, obj) {
|
|
||||||
if (data) {
|
|
||||||
obj = obj || new OuterBoolean();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OuterComposite model module.
|
* The OuterComposite model module.
|
||||||
* @module model/OuterComposite
|
* @module model/OuterComposite
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class OuterComposite {
|
class OuterComposite {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OuterComposite</code>.
|
* Constructs a new <code>OuterComposite</code>.
|
||||||
* @alias module:model/OuterComposite
|
* @alias module:model/OuterComposite
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
OuterComposite.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OuterComposite</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/OuterComposite} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/OuterComposite} The populated <code>OuterComposite</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>OuterComposite</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/OuterComposite} obj Optional instance to populate.
|
||||||
|
* @return {module:model/OuterComposite} The populated <code>OuterComposite</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new OuterComposite();
|
obj = obj || new OuterComposite();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('my_number')) {
|
if (data.hasOwnProperty('my_number')) {
|
||||||
obj['my_number'] = 'Number'.constructFromObject(data['my_number']);
|
obj['my_number'] = 'Number'.constructFromObject(data['my_number']);
|
||||||
}
|
}
|
||||||
@ -69,26 +60,28 @@ export default class OuterComposite {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} my_number
|
|
||||||
*/
|
|
||||||
my_number = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} my_string
|
|
||||||
*/
|
|
||||||
my_string = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Boolean} my_boolean
|
|
||||||
*/
|
|
||||||
my_boolean = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} my_number
|
||||||
|
*/
|
||||||
|
OuterComposite.prototype['my_number'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} my_string
|
||||||
|
*/
|
||||||
|
OuterComposite.prototype['my_string'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Boolean} my_boolean
|
||||||
|
*/
|
||||||
|
OuterComposite.prototype['my_boolean'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default OuterComposite;
|
||||||
|
|
||||||
|
@ -11,10 +11,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum class OuterEnum.
|
* Enum class OuterEnum.
|
||||||
* @enum {}
|
* @enum {}
|
||||||
@ -26,21 +23,21 @@ export default class OuterEnum {
|
|||||||
* value: "placed"
|
* value: "placed"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
placed = "placed";
|
"placed" = "placed";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "approved"
|
* value: "approved"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
approved = "approved";
|
"approved" = "approved";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* value: "delivered"
|
* value: "delivered"
|
||||||
* @const
|
* @const
|
||||||
*/
|
*/
|
||||||
delivered = "delivered";
|
"delivered" = "delivered";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -54,4 +51,3 @@ export default class OuterEnum {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,73 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The OuterNumber model module.
|
|
||||||
* @module model/OuterNumber
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
export default class OuterNumber {
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>OuterNumber</code>.
|
|
||||||
* @alias module:model/OuterNumber
|
|
||||||
* @class
|
|
||||||
*/
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a <code>OuterNumber</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
||||||
* @param {module:model/OuterNumber} obj Optional instance to populate.
|
|
||||||
* @return {module:model/OuterNumber} The populated <code>OuterNumber</code> instance.
|
|
||||||
*/
|
|
||||||
static constructFromObject(data, obj) {
|
|
||||||
if (data) {
|
|
||||||
obj = obj || new OuterNumber();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,73 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swagger Petstore
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0
|
|
||||||
* Contact: apiteam@swagger.io
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The OuterString model module.
|
|
||||||
* @module model/OuterString
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
|
||||||
export default class OuterString {
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>OuterString</code>.
|
|
||||||
* @alias module:model/OuterString
|
|
||||||
* @class
|
|
||||||
*/
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a <code>OuterString</code> from a plain JavaScript object, optionally creating a new instance.
|
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
||||||
* @param {module:model/OuterString} obj Optional instance to populate.
|
|
||||||
* @return {module:model/OuterString} The populated <code>OuterString</code> instance.
|
|
||||||
*/
|
|
||||||
static constructFromObject(data, obj) {
|
|
||||||
if (data) {
|
|
||||||
obj = obj || new OuterString();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -11,55 +11,48 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import Category from './Category';
|
import Category from './Category';
|
||||||
import Tag from './Tag';
|
import Tag from './Tag';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Pet model module.
|
* The Pet model module.
|
||||||
* @module model/Pet
|
* @module model/Pet
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Pet {
|
class Pet {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Pet</code>.
|
* Constructs a new <code>Pet</code>.
|
||||||
* @alias module:model/Pet
|
* @alias module:model/Pet
|
||||||
* @class
|
* @param name {String}
|
||||||
* @param name {String}
|
* @param photoUrls {Array.<String>}
|
||||||
* @param photoUrls {Array.<String>}
|
*/
|
||||||
*/
|
constructor(name, photoUrls) {
|
||||||
|
|
||||||
constructor(name, photoUrls) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this['name'] = name;this['photoUrls'] = photoUrls;
|
|
||||||
|
|
||||||
|
|
||||||
|
Pet.initialize(this, name, photoUrls);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Pet</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Pet} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Pet} The populated <code>Pet</code> instance.
|
static initialize(obj, name, photoUrls) {
|
||||||
*/
|
obj['name'] = name;
|
||||||
|
obj['photoUrls'] = photoUrls;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Pet</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Pet} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Pet} The populated <code>Pet</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Pet();
|
obj = obj || new Pet();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
}
|
}
|
||||||
@ -82,65 +75,71 @@ export default class Pet {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} id
|
|
||||||
*/
|
|
||||||
id = undefined;
|
|
||||||
/**
|
|
||||||
* @member {module:model/Category} category
|
|
||||||
*/
|
|
||||||
category = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} name
|
|
||||||
*/
|
|
||||||
name = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Array.<String>} photoUrls
|
|
||||||
*/
|
|
||||||
photoUrls = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Array.<module:model/Tag>} tags
|
|
||||||
*/
|
|
||||||
tags = undefined;
|
|
||||||
/**
|
|
||||||
* pet status in the store
|
|
||||||
* @member {module:model/Pet.StatusEnum} status
|
|
||||||
*/
|
|
||||||
status = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowed values for the <code>status</code> property.
|
|
||||||
* @enum {String}
|
|
||||||
* @readonly
|
|
||||||
*/
|
|
||||||
static StatusEnum = {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "available"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"available": "available",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "pending"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"pending": "pending",
|
|
||||||
|
|
||||||
/**
|
|
||||||
* value: "sold"
|
|
||||||
* @const
|
|
||||||
*/
|
|
||||||
"sold": "sold"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} id
|
||||||
|
*/
|
||||||
|
Pet.prototype['id'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {module:model/Category} category
|
||||||
|
*/
|
||||||
|
Pet.prototype['category'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} name
|
||||||
|
*/
|
||||||
|
Pet.prototype['name'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<String>} photoUrls
|
||||||
|
*/
|
||||||
|
Pet.prototype['photoUrls'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<module:model/Tag>} tags
|
||||||
|
*/
|
||||||
|
Pet.prototype['tags'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pet status in the store
|
||||||
|
* @member {module:model/Pet.StatusEnum} status
|
||||||
|
*/
|
||||||
|
Pet.prototype['status'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allowed values for the <code>status</code> property.
|
||||||
|
* @enum {String}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
Pet['StatusEnum'] = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "available"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"available": "available",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "pending"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"pending": "pending",
|
||||||
|
|
||||||
|
/**
|
||||||
|
* value: "sold"
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
"sold": "sold"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Pet;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ReadOnlyFirst model module.
|
* The ReadOnlyFirst model module.
|
||||||
* @module model/ReadOnlyFirst
|
* @module model/ReadOnlyFirst
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class ReadOnlyFirst {
|
class ReadOnlyFirst {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>ReadOnlyFirst</code>.
|
* Constructs a new <code>ReadOnlyFirst</code>.
|
||||||
* @alias module:model/ReadOnlyFirst
|
* @alias module:model/ReadOnlyFirst
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ReadOnlyFirst.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>ReadOnlyFirst</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/ReadOnlyFirst} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/ReadOnlyFirst} The populated <code>ReadOnlyFirst</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>ReadOnlyFirst</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/ReadOnlyFirst} obj Optional instance to populate.
|
||||||
|
* @return {module:model/ReadOnlyFirst} The populated <code>ReadOnlyFirst</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new ReadOnlyFirst();
|
obj = obj || new ReadOnlyFirst();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('bar')) {
|
if (data.hasOwnProperty('bar')) {
|
||||||
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
obj['bar'] = ApiClient.convertToType(data['bar'], 'String');
|
||||||
}
|
}
|
||||||
@ -66,22 +57,23 @@ export default class ReadOnlyFirst {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {String} bar
|
|
||||||
*/
|
|
||||||
bar = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} baz
|
|
||||||
*/
|
|
||||||
baz = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} bar
|
||||||
|
*/
|
||||||
|
ReadOnlyFirst.prototype['bar'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} baz
|
||||||
|
*/
|
||||||
|
ReadOnlyFirst.prototype['baz'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default ReadOnlyFirst;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The SpecialModelName model module.
|
* The SpecialModelName model module.
|
||||||
* @module model/SpecialModelName
|
* @module model/SpecialModelName
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class SpecialModelName {
|
class SpecialModelName {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>SpecialModelName</code>.
|
* Constructs a new <code>SpecialModelName</code>.
|
||||||
* @alias module:model/SpecialModelName
|
* @alias module:model/SpecialModelName
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SpecialModelName.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>SpecialModelName</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/SpecialModelName} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/SpecialModelName} The populated <code>SpecialModelName</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>SpecialModelName</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/SpecialModelName} obj Optional instance to populate.
|
||||||
|
* @return {module:model/SpecialModelName} The populated <code>SpecialModelName</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new SpecialModelName();
|
obj = obj || new SpecialModelName();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('$special[property.name]')) {
|
if (data.hasOwnProperty('$special[property.name]')) {
|
||||||
obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number');
|
obj['$special[property.name]'] = ApiClient.convertToType(data['$special[property.name]'], 'Number');
|
||||||
}
|
}
|
||||||
@ -63,18 +54,18 @@ export default class SpecialModelName {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} $special[property.name]
|
|
||||||
*/
|
|
||||||
$special[property.name] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} $special[property.name]
|
||||||
|
*/
|
||||||
|
SpecialModelName.prototype['$special[property.name]'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default SpecialModelName;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Tag model module.
|
* The Tag model module.
|
||||||
* @module model/Tag
|
* @module model/Tag
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class Tag {
|
class Tag {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>Tag</code>.
|
* Constructs a new <code>Tag</code>.
|
||||||
* @alias module:model/Tag
|
* @alias module:model/Tag
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Tag.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>Tag</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/Tag} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/Tag} The populated <code>Tag</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>Tag</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/Tag} obj Optional instance to populate.
|
||||||
|
* @return {module:model/Tag} The populated <code>Tag</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new Tag();
|
obj = obj || new Tag();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
}
|
}
|
||||||
@ -66,22 +57,23 @@ export default class Tag {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} id
|
|
||||||
*/
|
|
||||||
id = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} name
|
|
||||||
*/
|
|
||||||
name = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} id
|
||||||
|
*/
|
||||||
|
Tag.prototype['id'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} name
|
||||||
|
*/
|
||||||
|
Tag.prototype['name'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default Tag;
|
||||||
|
|
||||||
|
@ -11,51 +11,42 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The User model module.
|
* The User model module.
|
||||||
* @module model/User
|
* @module model/User
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
*/
|
*/
|
||||||
export default class User {
|
class User {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>User</code>.
|
* Constructs a new <code>User</code>.
|
||||||
* @alias module:model/User
|
* @alias module:model/User
|
||||||
* @class
|
*/
|
||||||
*/
|
constructor() {
|
||||||
|
|
||||||
constructor() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
User.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>User</code> from a plain JavaScript object, optionally creating a new instance.
|
* Initializes the fields of this object.
|
||||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
* Only for internal use.
|
||||||
* @param {module:model/User} obj Optional instance to populate.
|
*/
|
||||||
* @return {module:model/User} The populated <code>User</code> instance.
|
static initialize(obj) {
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>User</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||||
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
|
* @param {module:model/User} obj Optional instance to populate.
|
||||||
|
* @return {module:model/User} The populated <code>User</code> instance.
|
||||||
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new User();
|
obj = obj || new User();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
|
||||||
}
|
}
|
||||||
@ -84,47 +75,54 @@ export default class User {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Number} id
|
|
||||||
*/
|
|
||||||
id = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} username
|
|
||||||
*/
|
|
||||||
username = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} firstName
|
|
||||||
*/
|
|
||||||
firstName = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} lastName
|
|
||||||
*/
|
|
||||||
lastName = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} email
|
|
||||||
*/
|
|
||||||
email = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} password
|
|
||||||
*/
|
|
||||||
password = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} phone
|
|
||||||
*/
|
|
||||||
phone = undefined;
|
|
||||||
/**
|
|
||||||
* User Status
|
|
||||||
* @member {Number} userStatus
|
|
||||||
*/
|
|
||||||
userStatus = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Number} id
|
||||||
|
*/
|
||||||
|
User.prototype['id'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} username
|
||||||
|
*/
|
||||||
|
User.prototype['username'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} firstName
|
||||||
|
*/
|
||||||
|
User.prototype['firstName'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} lastName
|
||||||
|
*/
|
||||||
|
User.prototype['lastName'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} email
|
||||||
|
*/
|
||||||
|
User.prototype['email'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} password
|
||||||
|
*/
|
||||||
|
User.prototype['password'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {String} phone
|
||||||
|
*/
|
||||||
|
User.prototype['phone'] = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User Status
|
||||||
|
* @member {Number} userStatus
|
||||||
|
*/
|
||||||
|
User.prototype['userStatus'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default User;
|
||||||
|
|
||||||
|
393
samples/client/petstore/javascript-es6/src/test/ApiClientTest.js
Normal file
393
samples/client/petstore/javascript-es6/src/test/ApiClientTest.js
Normal file
@ -0,0 +1,393 @@
|
|||||||
|
if (typeof module === 'object' && module.exports) {
|
||||||
|
var expect = require('expect.js');
|
||||||
|
var SwaggerPetstore = require('../src/index');
|
||||||
|
var sinon = require('sinon');
|
||||||
|
}
|
||||||
|
|
||||||
|
var apiClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
|
describe('ApiClient', function() {
|
||||||
|
describe('defaults', function() {
|
||||||
|
it('should have correct default values with the default API client', function() {
|
||||||
|
expect(apiClient).to.be.ok();
|
||||||
|
expect(apiClient.basePath).to.be('http://petstore.swagger.io:80/v2');
|
||||||
|
expect(apiClient.authentications).to.eql({
|
||||||
|
petstore_auth: {type: 'oauth2'},
|
||||||
|
http_basic_test: {type: 'basic'},
|
||||||
|
api_key: {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
||||||
|
api_key_query: {type: 'apiKey', 'in': 'query', name: 'api_key_query'},
|
||||||
|
/* comment out the following as these fake security def (testing purpose)
|
||||||
|
* are removed from the spec, we'll add these back after updating the
|
||||||
|
* petstore server
|
||||||
|
*
|
||||||
|
test_http_basic: {type: 'basic'},
|
||||||
|
test_api_client_id: {
|
||||||
|
type: 'apiKey',
|
||||||
|
'in': 'header',
|
||||||
|
name: 'x-test_api_client_id'
|
||||||
|
},
|
||||||
|
test_api_client_secret: {
|
||||||
|
type: 'apiKey',
|
||||||
|
'in': 'header',
|
||||||
|
name: 'x-test_api_client_secret'
|
||||||
|
},
|
||||||
|
test_api_key_query: {
|
||||||
|
type: 'apiKey',
|
||||||
|
'in': 'query',
|
||||||
|
name: 'test_api_key_query'
|
||||||
|
},
|
||||||
|
test_api_key_header: {
|
||||||
|
type: 'apiKey',
|
||||||
|
'in': 'header',
|
||||||
|
name: 'test_api_key_header'
|
||||||
|
}*/
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have correct default values with new API client and can customize it', function() {
|
||||||
|
var newClient = new SwaggerPetstore.ApiClient;
|
||||||
|
expect(newClient.basePath).to.be('http://petstore.swagger.io:80/v2');
|
||||||
|
expect(newClient.buildUrl('/abc', {})).to.be('http://petstore.swagger.io:80/v2/abc');
|
||||||
|
|
||||||
|
newClient.basePath = 'http://example.com';
|
||||||
|
expect(newClient.basePath).to.be('http://example.com');
|
||||||
|
expect(newClient.buildUrl('/abc', {})).to.be('http://example.com/abc');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#paramToString', function() {
|
||||||
|
it('should return empty string for null and undefined', function() {
|
||||||
|
expect(apiClient.paramToString(null)).to.be('');
|
||||||
|
expect(apiClient.paramToString(undefined)).to.be('');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should return string', function() {
|
||||||
|
expect(apiClient.paramToString('')).to.be('');
|
||||||
|
expect(apiClient.paramToString('abc')).to.be('abc');
|
||||||
|
expect(apiClient.paramToString(123)).to.be('123');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#buildCollectionParam', function() {
|
||||||
|
var param;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
param = ['aa', 'bb', 123];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for csv', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'csv')).to.be('aa,bb,123');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for ssv', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'ssv')).to.be('aa bb 123');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for tsv', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'tsv')).to.be('aa\tbb\t123');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for pipes', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'pipes')).to.be('aa|bb|123');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for multi', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'multi')).to.eql(['aa', 'bb', '123']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('fails for invalid collection format', function() {
|
||||||
|
expect(function() { apiClient.buildCollectionParam(param, 'INVALID'); }).to.throwError();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#buildUrl', function() {
|
||||||
|
it('should work without path parameters in the path', function() {
|
||||||
|
expect(apiClient.buildUrl('/abc', {})).to
|
||||||
|
.be('http://petstore.swagger.io:80/v2/abc');
|
||||||
|
expect(apiClient.buildUrl('/abc/def?ok', {id: 123})).to
|
||||||
|
.be('http://petstore.swagger.io:80/v2/abc/def?ok');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should work with path parameters in the path', function() {
|
||||||
|
expect(apiClient.buildUrl('/{id}', {id: 123})).to
|
||||||
|
.be('http://petstore.swagger.io:80/v2/123');
|
||||||
|
expect(apiClient.buildUrl('/abc/{id}/{name}?ok', {id: 456, name: 'a b'})).to.
|
||||||
|
be('http://petstore.swagger.io:80/v2/abc/456/a%20b?ok');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#isJsonMime', function() {
|
||||||
|
it('should return true for JSON MIME', function() {
|
||||||
|
expect(apiClient.isJsonMime('application/json')).to.be(true);
|
||||||
|
expect(apiClient.isJsonMime('application/json; charset=UTF8')).to.be(true);
|
||||||
|
expect(apiClient.isJsonMime('APPLICATION/JSON')).to.be(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should return false for non-JSON MIME', function() {
|
||||||
|
expect(apiClient.isJsonMime('')).to.be(false);
|
||||||
|
expect(apiClient.isJsonMime('text/plain')).to.be(false);
|
||||||
|
expect(apiClient.isJsonMime('application/xml')).to.be(false);
|
||||||
|
expect(apiClient.isJsonMime('application/jsonp')).to.be(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#applyAuthToRequest', function() {
|
||||||
|
var req, newClient;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
req = {
|
||||||
|
auth: function() {},
|
||||||
|
set: function() {},
|
||||||
|
query: function() {}
|
||||||
|
};
|
||||||
|
sinon.stub(req, 'auth');
|
||||||
|
sinon.stub(req, 'set');
|
||||||
|
sinon.stub(req, 'query');
|
||||||
|
newClient = new SwaggerPetstore.ApiClient();
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('basic', function() {
|
||||||
|
var authName = 'testBasicAuth';
|
||||||
|
var authNames = [authName];
|
||||||
|
var auth;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[authName] = {type: 'basic'};
|
||||||
|
auth = newClient.authentications[authName];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets auth header with username and password set', function() {
|
||||||
|
auth.username = 'user';
|
||||||
|
auth.password = 'pass';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.auth);
|
||||||
|
// 'dXNlcjpwYXNz' is base64-encoded string of 'user:pass'
|
||||||
|
sinon.assert.calledWithMatch(req.auth, 'user', 'pass');
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets header with only username set', function() {
|
||||||
|
auth.username = 'user';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.auth);
|
||||||
|
// 'dXNlcjo=' is base64-encoded string of 'user:'
|
||||||
|
sinon.assert.calledWithMatch(req.auth, 'user', '');
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets header with only password set', function() {
|
||||||
|
auth.password = 'pass';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.auth);
|
||||||
|
// 'OnBhc3M=' is base64-encoded string of ':pass'
|
||||||
|
sinon.assert.calledWithMatch(req.auth, '', 'pass');
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('does not set header when username and password are not set', function() {
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('apiKey', function() {
|
||||||
|
var authName = 'testApiKey';
|
||||||
|
var authNames = [authName];
|
||||||
|
var auth;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[authName] = {type: 'apiKey', name: 'api_key'};
|
||||||
|
auth = newClient.authentications[authName];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets api key in header', function() {
|
||||||
|
auth.in = 'header';
|
||||||
|
auth.apiKey = 'my-api-key';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.set);
|
||||||
|
sinon.assert.calledWithMatch(req.set, {'api_key': 'my-api-key'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets api key in query', function() {
|
||||||
|
auth.in = 'query';
|
||||||
|
auth.apiKey = 'my-api-key';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.query);
|
||||||
|
sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets api key in header with prefix', function() {
|
||||||
|
auth.in = 'header';
|
||||||
|
auth.apiKey = 'my-api-key';
|
||||||
|
auth.apiKeyPrefix = 'Key';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.set);
|
||||||
|
sinon.assert.calledWithMatch(req.set, {'api_key': 'Key my-api-key'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when api key is not set', function() {
|
||||||
|
auth.in = 'query';
|
||||||
|
auth.apiKey = null;
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('oauth2', function() {
|
||||||
|
var authName = 'testOAuth2';
|
||||||
|
var authNames = [authName];
|
||||||
|
var auth;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[authName] = {type: 'oauth2'};
|
||||||
|
auth = newClient.authentications[authName];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets access token in header', function() {
|
||||||
|
auth.accessToken = 'my-access-token';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.set);
|
||||||
|
sinon.assert.calledWithMatch(req.set, {'Authorization': 'Bearer my-access-token'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when access token is not set', function() {
|
||||||
|
auth.accessToken = null;
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('apiKey and oauth2', function() {
|
||||||
|
var apiKeyAuthName = 'testApiKey';
|
||||||
|
var oauth2Name = 'testOAuth2';
|
||||||
|
var authNames = [apiKeyAuthName, oauth2Name];
|
||||||
|
var apiKeyAuth, oauth2;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[apiKeyAuthName] = {type: 'apiKey', name: 'api_key', 'in': 'query'};
|
||||||
|
newClient.authentications[oauth2Name] = {type: 'oauth2'};
|
||||||
|
apiKeyAuth = newClient.authentications[apiKeyAuthName];
|
||||||
|
oauth2 = newClient.authentications[oauth2Name];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when setting both api key and access token', function() {
|
||||||
|
apiKeyAuth.apiKey = 'my-api-key';
|
||||||
|
oauth2.accessToken = 'my-access-token';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.query);
|
||||||
|
sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'});
|
||||||
|
sinon.assert.calledOnce(req.set);
|
||||||
|
sinon.assert.calledWithMatch(req.set, {'Authorization': 'Bearer my-access-token'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when setting only api key', function() {
|
||||||
|
apiKeyAuth.apiKey = 'my-api-key';
|
||||||
|
oauth2.accessToken = null;
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.query);
|
||||||
|
sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'});
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when neither api key nor access token is set', function() {
|
||||||
|
apiKeyAuth.apiKey = null;
|
||||||
|
oauth2.accessToken = null;
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('unknown type', function() {
|
||||||
|
var authName = 'unknown';
|
||||||
|
var authNames = [authName];
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[authName] = {type: 'UNKNOWN'};
|
||||||
|
});
|
||||||
|
|
||||||
|
it('throws error for unknown auth type', function() {
|
||||||
|
expect(function() {
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
}).to.throwError();
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
describe('#defaultHeaders', function() {
|
||||||
|
it('should initialize default headers to be an empty object', function() {
|
||||||
|
expect(apiClient.defaultHeaders).to.eql({});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should put default headers in request', function() {
|
||||||
|
var newClient = new SwaggerPetstore.ApiClient;
|
||||||
|
newClient.defaultHeaders['Content-Type'] = 'text/plain'
|
||||||
|
newClient.defaultHeaders['api_key'] = 'special-key'
|
||||||
|
|
||||||
|
var expected = {'Content-Type': 'text/plain', 'api_key': 'special-key'};
|
||||||
|
expect(newClient.defaultHeaders).to.eql(expected);
|
||||||
|
var req = makeDumbRequest(newClient);
|
||||||
|
req.unset('User-Agent');
|
||||||
|
expect(req.header).to.eql(expected);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should override default headers with provided header params', function() {
|
||||||
|
var newClient = new SwaggerPetstore.ApiClient;
|
||||||
|
newClient.defaultHeaders['Content-Type'] = 'text/plain'
|
||||||
|
newClient.defaultHeaders['api_key'] = 'special-key'
|
||||||
|
|
||||||
|
var headerParams = {'Content-Type': 'application/json', 'Authorization': 'Bearer test-token'}
|
||||||
|
var expected = {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'api_key': 'special-key',
|
||||||
|
'Authorization': 'Bearer test-token'
|
||||||
|
};
|
||||||
|
var req = makeDumbRequest(newClient, {headerParams: headerParams});
|
||||||
|
req.unset('User-Agent');
|
||||||
|
expect(req.header).to.eql(expected);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
function makeDumbRequest(apiClient, opts) {
|
||||||
|
opts = opts || {};
|
||||||
|
var path = opts.path || '/store/inventory';
|
||||||
|
var httpMethod = opts.httpMethod || 'GET';
|
||||||
|
var pathParams = opts.pathParams || {};
|
||||||
|
var queryParams = opts.queryParams || {};
|
||||||
|
var headerParams = opts.headerParams || {};
|
||||||
|
var formParams = opts.formParams || {};
|
||||||
|
var bodyParam = opts.bodyParam;
|
||||||
|
var authNames = [];
|
||||||
|
var contentTypes = opts.contentTypes || [];
|
||||||
|
var accepts = opts.accepts || [];
|
||||||
|
var callback = opts.callback;
|
||||||
|
return apiClient.callApi(path, httpMethod, pathParams, queryParams,
|
||||||
|
headerParams, formParams, bodyParam, authNames, contentTypes, accepts);
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.AnotherFakeApi();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('AnotherFakeApi', function() {
|
||||||
|
describe('testSpecialTags', function() {
|
||||||
|
it('should call testSpecialTags successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testSpecialTags
|
||||||
|
//instance.testSpecialTags(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,123 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.FakeApi();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('FakeApi', function() {
|
||||||
|
describe('fakeOuterBooleanSerialize', function() {
|
||||||
|
it('should call fakeOuterBooleanSerialize successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test fakeOuterBooleanSerialize
|
||||||
|
//instance.fakeOuterBooleanSerialize(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('fakeOuterCompositeSerialize', function() {
|
||||||
|
it('should call fakeOuterCompositeSerialize successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test fakeOuterCompositeSerialize
|
||||||
|
//instance.fakeOuterCompositeSerialize(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('fakeOuterNumberSerialize', function() {
|
||||||
|
it('should call fakeOuterNumberSerialize successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test fakeOuterNumberSerialize
|
||||||
|
//instance.fakeOuterNumberSerialize(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('fakeOuterStringSerialize', function() {
|
||||||
|
it('should call fakeOuterStringSerialize successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test fakeOuterStringSerialize
|
||||||
|
//instance.fakeOuterStringSerialize(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('testClientModel', function() {
|
||||||
|
it('should call testClientModel successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testClientModel
|
||||||
|
//instance.testClientModel(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('testEndpointParameters', function() {
|
||||||
|
it('should call testEndpointParameters successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testEndpointParameters
|
||||||
|
//instance.testEndpointParameters(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('testEnumParameters', function() {
|
||||||
|
it('should call testEnumParameters successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testEnumParameters
|
||||||
|
//instance.testEnumParameters(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,63 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.FakeClassnameTags123Api();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('FakeClassnameTags123Api', function() {
|
||||||
|
describe('testClassname', function() {
|
||||||
|
it('should call testClassname successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testClassname
|
||||||
|
//instance.testClassname(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,133 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.PetApi();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('PetApi', function() {
|
||||||
|
describe('addPet', function() {
|
||||||
|
it('should call addPet successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test addPet
|
||||||
|
//instance.addPet(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('deletePet', function() {
|
||||||
|
it('should call deletePet successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test deletePet
|
||||||
|
//instance.deletePet(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('findPetsByStatus', function() {
|
||||||
|
it('should call findPetsByStatus successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test findPetsByStatus
|
||||||
|
//instance.findPetsByStatus(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('findPetsByTags', function() {
|
||||||
|
it('should call findPetsByTags successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test findPetsByTags
|
||||||
|
//instance.findPetsByTags(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('getPetById', function() {
|
||||||
|
it('should call getPetById successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test getPetById
|
||||||
|
//instance.getPetById(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('updatePet', function() {
|
||||||
|
it('should call updatePet successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test updatePet
|
||||||
|
//instance.updatePet(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('updatePetWithForm', function() {
|
||||||
|
it('should call updatePetWithForm successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test updatePetWithForm
|
||||||
|
//instance.updatePetWithForm(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('uploadFile', function() {
|
||||||
|
it('should call uploadFile successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test uploadFile
|
||||||
|
//instance.uploadFile(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,93 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.StoreApi();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('StoreApi', function() {
|
||||||
|
describe('deleteOrder', function() {
|
||||||
|
it('should call deleteOrder successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test deleteOrder
|
||||||
|
//instance.deleteOrder(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('getInventory', function() {
|
||||||
|
it('should call getInventory successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test getInventory
|
||||||
|
//instance.getInventory(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('getOrderById', function() {
|
||||||
|
it('should call getOrderById successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test getOrderById
|
||||||
|
//instance.getOrderById(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('placeOrder', function() {
|
||||||
|
it('should call placeOrder successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test placeOrder
|
||||||
|
//instance.placeOrder(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,133 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.UserApi();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('UserApi', function() {
|
||||||
|
describe('createUser', function() {
|
||||||
|
it('should call createUser successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test createUser
|
||||||
|
//instance.createUser(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('createUsersWithArrayInput', function() {
|
||||||
|
it('should call createUsersWithArrayInput successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test createUsersWithArrayInput
|
||||||
|
//instance.createUsersWithArrayInput(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('createUsersWithListInput', function() {
|
||||||
|
it('should call createUsersWithListInput successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test createUsersWithListInput
|
||||||
|
//instance.createUsersWithListInput(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('deleteUser', function() {
|
||||||
|
it('should call deleteUser successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test deleteUser
|
||||||
|
//instance.deleteUser(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('getUserByName', function() {
|
||||||
|
it('should call getUserByName successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test getUserByName
|
||||||
|
//instance.getUserByName(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('loginUser', function() {
|
||||||
|
it('should call loginUser successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test loginUser
|
||||||
|
//instance.loginUser(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('logoutUser', function() {
|
||||||
|
it('should call logoutUser successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test logoutUser
|
||||||
|
//instance.logoutUser(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('updateUser', function() {
|
||||||
|
it('should call updateUser successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test updateUser
|
||||||
|
//instance.updateUser(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.AdditionalPropertiesClass();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('AdditionalPropertiesClass', function() {
|
||||||
|
it('should create an instance of AdditionalPropertiesClass', function() {
|
||||||
|
// uncomment below and update the code to test AdditionalPropertiesClass
|
||||||
|
//var instane = new SwaggerPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.AdditionalPropertiesClass);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapProperty (base name: "map_property")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapProperty
|
||||||
|
//var instane = new SwaggerPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapOfMapProperty (base name: "map_of_map_property")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapOfMapProperty
|
||||||
|
//var instane = new SwaggerPetstore.AdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Animal();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Animal', function() {
|
||||||
|
it('should create an instance of Animal', function() {
|
||||||
|
// uncomment below and update the code to test Animal
|
||||||
|
//var instane = new SwaggerPetstore.Animal();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Animal);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property className (base name: "className")', function() {
|
||||||
|
// uncomment below and update the code to test the property className
|
||||||
|
//var instane = new SwaggerPetstore.Animal();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property color (base name: "color")', function() {
|
||||||
|
// uncomment below and update the code to test the property color
|
||||||
|
//var instane = new SwaggerPetstore.Animal();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,59 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.AnimalFarm();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('AnimalFarm', function() {
|
||||||
|
it('should create an instance of AnimalFarm', function() {
|
||||||
|
// uncomment below and update the code to test AnimalFarm
|
||||||
|
//var instane = new SwaggerPetstore.AnimalFarm();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.AnimalFarm);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,77 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.ApiResponse();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('ApiResponse', function() {
|
||||||
|
it('should create an instance of ApiResponse', function() {
|
||||||
|
// uncomment below and update the code to test ApiResponse
|
||||||
|
//var instane = new SwaggerPetstore.ApiResponse();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.ApiResponse);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property code (base name: "code")', function() {
|
||||||
|
// uncomment below and update the code to test the property code
|
||||||
|
//var instane = new SwaggerPetstore.ApiResponse();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property type (base name: "type")', function() {
|
||||||
|
// uncomment below and update the code to test the property type
|
||||||
|
//var instane = new SwaggerPetstore.ApiResponse();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property message (base name: "message")', function() {
|
||||||
|
// uncomment below and update the code to test the property message
|
||||||
|
//var instane = new SwaggerPetstore.ApiResponse();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('ArrayOfArrayOfNumberOnly', function() {
|
||||||
|
it('should create an instance of ArrayOfArrayOfNumberOnly', function() {
|
||||||
|
// uncomment below and update the code to test ArrayOfArrayOfNumberOnly
|
||||||
|
//var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.ArrayOfArrayOfNumberOnly);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property arrayArrayNumber (base name: "ArrayArrayNumber")', function() {
|
||||||
|
// uncomment below and update the code to test the property arrayArrayNumber
|
||||||
|
//var instane = new SwaggerPetstore.ArrayOfArrayOfNumberOnly();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.ArrayOfNumberOnly();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('ArrayOfNumberOnly', function() {
|
||||||
|
it('should create an instance of ArrayOfNumberOnly', function() {
|
||||||
|
// uncomment below and update the code to test ArrayOfNumberOnly
|
||||||
|
//var instane = new SwaggerPetstore.ArrayOfNumberOnly();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.ArrayOfNumberOnly);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property arrayNumber (base name: "ArrayNumber")', function() {
|
||||||
|
// uncomment below and update the code to test the property arrayNumber
|
||||||
|
//var instane = new SwaggerPetstore.ArrayOfNumberOnly();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,77 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.ArrayTest();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('ArrayTest', function() {
|
||||||
|
it('should create an instance of ArrayTest', function() {
|
||||||
|
// uncomment below and update the code to test ArrayTest
|
||||||
|
//var instane = new SwaggerPetstore.ArrayTest();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.ArrayTest);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property arrayOfString (base name: "array_of_string")', function() {
|
||||||
|
// uncomment below and update the code to test the property arrayOfString
|
||||||
|
//var instane = new SwaggerPetstore.ArrayTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property arrayArrayOfInteger (base name: "array_array_of_integer")', function() {
|
||||||
|
// uncomment below and update the code to test the property arrayArrayOfInteger
|
||||||
|
//var instane = new SwaggerPetstore.ArrayTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property arrayArrayOfModel (base name: "array_array_of_model")', function() {
|
||||||
|
// uncomment below and update the code to test the property arrayArrayOfModel
|
||||||
|
//var instane = new SwaggerPetstore.ArrayTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,95 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Capitalization();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Capitalization', function() {
|
||||||
|
it('should create an instance of Capitalization', function() {
|
||||||
|
// uncomment below and update the code to test Capitalization
|
||||||
|
//var instane = new SwaggerPetstore.Capitalization();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Capitalization);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property smallCamel (base name: "smallCamel")', function() {
|
||||||
|
// uncomment below and update the code to test the property smallCamel
|
||||||
|
//var instane = new SwaggerPetstore.Capitalization();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property capitalCamel (base name: "CapitalCamel")', function() {
|
||||||
|
// uncomment below and update the code to test the property capitalCamel
|
||||||
|
//var instane = new SwaggerPetstore.Capitalization();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property smallSnake (base name: "small_Snake")', function() {
|
||||||
|
// uncomment below and update the code to test the property smallSnake
|
||||||
|
//var instane = new SwaggerPetstore.Capitalization();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property capitalSnake (base name: "Capital_Snake")', function() {
|
||||||
|
// uncomment below and update the code to test the property capitalSnake
|
||||||
|
//var instane = new SwaggerPetstore.Capitalization();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property sCAETHFlowPoints (base name: "SCA_ETH_Flow_Points")', function() {
|
||||||
|
// uncomment below and update the code to test the property sCAETHFlowPoints
|
||||||
|
//var instane = new SwaggerPetstore.Capitalization();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property ATT_NAME (base name: "ATT_NAME")', function() {
|
||||||
|
// uncomment below and update the code to test the property ATT_NAME
|
||||||
|
//var instane = new SwaggerPetstore.Capitalization();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Cat();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Cat', function() {
|
||||||
|
it('should create an instance of Cat', function() {
|
||||||
|
// uncomment below and update the code to test Cat
|
||||||
|
//var instane = new SwaggerPetstore.Cat();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Cat);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property declawed (base name: "declawed")', function() {
|
||||||
|
// uncomment below and update the code to test the property declawed
|
||||||
|
//var instane = new SwaggerPetstore.Cat();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Category();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Category', function() {
|
||||||
|
it('should create an instance of Category', function() {
|
||||||
|
// uncomment below and update the code to test Category
|
||||||
|
//var instane = new SwaggerPetstore.Category();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Category);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property id (base name: "id")', function() {
|
||||||
|
// uncomment below and update the code to test the property id
|
||||||
|
//var instane = new SwaggerPetstore.Category();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property name (base name: "name")', function() {
|
||||||
|
// uncomment below and update the code to test the property name
|
||||||
|
//var instane = new SwaggerPetstore.Category();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.ClassModel();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('ClassModel', function() {
|
||||||
|
it('should create an instance of ClassModel', function() {
|
||||||
|
// uncomment below and update the code to test ClassModel
|
||||||
|
//var instane = new SwaggerPetstore.ClassModel();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.ClassModel);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _class (base name: "_class")', function() {
|
||||||
|
// uncomment below and update the code to test the property _class
|
||||||
|
//var instane = new SwaggerPetstore.ClassModel();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Client();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Client', function() {
|
||||||
|
it('should create an instance of Client', function() {
|
||||||
|
// uncomment below and update the code to test Client
|
||||||
|
//var instane = new SwaggerPetstore.Client();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Client);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property client (base name: "client")', function() {
|
||||||
|
// uncomment below and update the code to test the property client
|
||||||
|
//var instane = new SwaggerPetstore.Client();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Dog();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Dog', function() {
|
||||||
|
it('should create an instance of Dog', function() {
|
||||||
|
// uncomment below and update the code to test Dog
|
||||||
|
//var instane = new SwaggerPetstore.Dog();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Dog);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property breed (base name: "breed")', function() {
|
||||||
|
// uncomment below and update the code to test the property breed
|
||||||
|
//var instane = new SwaggerPetstore.Dog();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.EnumArrays();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('EnumArrays', function() {
|
||||||
|
it('should create an instance of EnumArrays', function() {
|
||||||
|
// uncomment below and update the code to test EnumArrays
|
||||||
|
//var instane = new SwaggerPetstore.EnumArrays();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.EnumArrays);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property justSymbol (base name: "just_symbol")', function() {
|
||||||
|
// uncomment below and update the code to test the property justSymbol
|
||||||
|
//var instane = new SwaggerPetstore.EnumArrays();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property arrayEnum (base name: "array_enum")', function() {
|
||||||
|
// uncomment below and update the code to test the property arrayEnum
|
||||||
|
//var instane = new SwaggerPetstore.EnumArrays();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,58 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('EnumClass', function() {
|
||||||
|
it('should create an instance of EnumClass', function() {
|
||||||
|
// uncomment below and update the code to test EnumClass
|
||||||
|
//var instane = new SwaggerPetstore.EnumClass();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.EnumClass);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,83 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.EnumTest();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('EnumTest', function() {
|
||||||
|
it('should create an instance of EnumTest', function() {
|
||||||
|
// uncomment below and update the code to test EnumTest
|
||||||
|
//var instane = new SwaggerPetstore.EnumTest();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.EnumTest);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property enumString (base name: "enum_string")', function() {
|
||||||
|
// uncomment below and update the code to test the property enumString
|
||||||
|
//var instane = new SwaggerPetstore.EnumTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property enumInteger (base name: "enum_integer")', function() {
|
||||||
|
// uncomment below and update the code to test the property enumInteger
|
||||||
|
//var instane = new SwaggerPetstore.EnumTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property enumNumber (base name: "enum_number")', function() {
|
||||||
|
// uncomment below and update the code to test the property enumNumber
|
||||||
|
//var instane = new SwaggerPetstore.EnumTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property outerEnum (base name: "outerEnum")', function() {
|
||||||
|
// uncomment below and update the code to test the property outerEnum
|
||||||
|
//var instane = new SwaggerPetstore.EnumTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,137 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.FormatTest();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('FormatTest', function() {
|
||||||
|
it('should create an instance of FormatTest', function() {
|
||||||
|
// uncomment below and update the code to test FormatTest
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.FormatTest);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property integer (base name: "integer")', function() {
|
||||||
|
// uncomment below and update the code to test the property integer
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property int32 (base name: "int32")', function() {
|
||||||
|
// uncomment below and update the code to test the property int32
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property int64 (base name: "int64")', function() {
|
||||||
|
// uncomment below and update the code to test the property int64
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _number (base name: "number")', function() {
|
||||||
|
// uncomment below and update the code to test the property _number
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _float (base name: "float")', function() {
|
||||||
|
// uncomment below and update the code to test the property _float
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _double (base name: "double")', function() {
|
||||||
|
// uncomment below and update the code to test the property _double
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _string (base name: "string")', function() {
|
||||||
|
// uncomment below and update the code to test the property _string
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _byte (base name: "byte")', function() {
|
||||||
|
// uncomment below and update the code to test the property _byte
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property binary (base name: "binary")', function() {
|
||||||
|
// uncomment below and update the code to test the property binary
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _date (base name: "date")', function() {
|
||||||
|
// uncomment below and update the code to test the property _date
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property dateTime (base name: "dateTime")', function() {
|
||||||
|
// uncomment below and update the code to test the property dateTime
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property uuid (base name: "uuid")', function() {
|
||||||
|
// uncomment below and update the code to test the property uuid
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property password (base name: "password")', function() {
|
||||||
|
// uncomment below and update the code to test the property password
|
||||||
|
//var instane = new SwaggerPetstore.FormatTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.HasOnlyReadOnly();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('HasOnlyReadOnly', function() {
|
||||||
|
it('should create an instance of HasOnlyReadOnly', function() {
|
||||||
|
// uncomment below and update the code to test HasOnlyReadOnly
|
||||||
|
//var instane = new SwaggerPetstore.HasOnlyReadOnly();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.HasOnlyReadOnly);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property bar (base name: "bar")', function() {
|
||||||
|
// uncomment below and update the code to test the property bar
|
||||||
|
//var instane = new SwaggerPetstore.HasOnlyReadOnly();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property foo (base name: "foo")', function() {
|
||||||
|
// uncomment below and update the code to test the property foo
|
||||||
|
//var instane = new SwaggerPetstore.HasOnlyReadOnly();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.List();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('List', function() {
|
||||||
|
it('should create an instance of List', function() {
|
||||||
|
// uncomment below and update the code to test List
|
||||||
|
//var instane = new SwaggerPetstore.List();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.List);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _123List (base name: "123-list")', function() {
|
||||||
|
// uncomment below and update the code to test the property _123List
|
||||||
|
//var instane = new SwaggerPetstore.List();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.MapTest();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('MapTest', function() {
|
||||||
|
it('should create an instance of MapTest', function() {
|
||||||
|
// uncomment below and update the code to test MapTest
|
||||||
|
//var instane = new SwaggerPetstore.MapTest();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.MapTest);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapMapOfString (base name: "map_map_of_string")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapMapOfString
|
||||||
|
//var instane = new SwaggerPetstore.MapTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property mapOfEnumString (base name: "map_of_enum_string")', function() {
|
||||||
|
// uncomment below and update the code to test the property mapOfEnumString
|
||||||
|
//var instane = new SwaggerPetstore.MapTest();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,77 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('MixedPropertiesAndAdditionalPropertiesClass', function() {
|
||||||
|
it('should create an instance of MixedPropertiesAndAdditionalPropertiesClass', function() {
|
||||||
|
// uncomment below and update the code to test MixedPropertiesAndAdditionalPropertiesClass
|
||||||
|
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property uuid (base name: "uuid")', function() {
|
||||||
|
// uncomment below and update the code to test the property uuid
|
||||||
|
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property dateTime (base name: "dateTime")', function() {
|
||||||
|
// uncomment below and update the code to test the property dateTime
|
||||||
|
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property map (base name: "map")', function() {
|
||||||
|
// uncomment below and update the code to test the property map
|
||||||
|
//var instane = new SwaggerPetstore.MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Model200Response();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Model200Response', function() {
|
||||||
|
it('should create an instance of Model200Response', function() {
|
||||||
|
// uncomment below and update the code to test Model200Response
|
||||||
|
//var instane = new SwaggerPetstore.Model200Response();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Model200Response);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property name (base name: "name")', function() {
|
||||||
|
// uncomment below and update the code to test the property name
|
||||||
|
//var instane = new SwaggerPetstore.Model200Response();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _class (base name: "class")', function() {
|
||||||
|
// uncomment below and update the code to test the property _class
|
||||||
|
//var instane = new SwaggerPetstore.Model200Response();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.ModelReturn();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('ModelReturn', function() {
|
||||||
|
it('should create an instance of ModelReturn', function() {
|
||||||
|
// uncomment below and update the code to test ModelReturn
|
||||||
|
//var instane = new SwaggerPetstore.ModelReturn();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.ModelReturn);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _return (base name: "return")', function() {
|
||||||
|
// uncomment below and update the code to test the property _return
|
||||||
|
//var instane = new SwaggerPetstore.ModelReturn();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,83 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Name();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Name', function() {
|
||||||
|
it('should create an instance of Name', function() {
|
||||||
|
// uncomment below and update the code to test Name
|
||||||
|
//var instane = new SwaggerPetstore.Name();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Name);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property name (base name: "name")', function() {
|
||||||
|
// uncomment below and update the code to test the property name
|
||||||
|
//var instane = new SwaggerPetstore.Name();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property snakeCase (base name: "snake_case")', function() {
|
||||||
|
// uncomment below and update the code to test the property snakeCase
|
||||||
|
//var instane = new SwaggerPetstore.Name();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property property (base name: "property")', function() {
|
||||||
|
// uncomment below and update the code to test the property property
|
||||||
|
//var instane = new SwaggerPetstore.Name();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property _123Number (base name: "123Number")', function() {
|
||||||
|
// uncomment below and update the code to test the property _123Number
|
||||||
|
//var instane = new SwaggerPetstore.Name();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.NumberOnly();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('NumberOnly', function() {
|
||||||
|
it('should create an instance of NumberOnly', function() {
|
||||||
|
// uncomment below and update the code to test NumberOnly
|
||||||
|
//var instane = new SwaggerPetstore.NumberOnly();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.NumberOnly);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property justNumber (base name: "JustNumber")', function() {
|
||||||
|
// uncomment below and update the code to test the property justNumber
|
||||||
|
//var instane = new SwaggerPetstore.NumberOnly();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,95 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Order();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Order', function() {
|
||||||
|
it('should create an instance of Order', function() {
|
||||||
|
// uncomment below and update the code to test Order
|
||||||
|
//var instane = new SwaggerPetstore.Order();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Order);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property id (base name: "id")', function() {
|
||||||
|
// uncomment below and update the code to test the property id
|
||||||
|
//var instane = new SwaggerPetstore.Order();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property petId (base name: "petId")', function() {
|
||||||
|
// uncomment below and update the code to test the property petId
|
||||||
|
//var instane = new SwaggerPetstore.Order();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property quantity (base name: "quantity")', function() {
|
||||||
|
// uncomment below and update the code to test the property quantity
|
||||||
|
//var instane = new SwaggerPetstore.Order();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property shipDate (base name: "shipDate")', function() {
|
||||||
|
// uncomment below and update the code to test the property shipDate
|
||||||
|
//var instane = new SwaggerPetstore.Order();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property status (base name: "status")', function() {
|
||||||
|
// uncomment below and update the code to test the property status
|
||||||
|
//var instane = new SwaggerPetstore.Order();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property complete (base name: "complete")', function() {
|
||||||
|
// uncomment below and update the code to test the property complete
|
||||||
|
//var instane = new SwaggerPetstore.Order();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,60 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
// OuterBoolean is not a member of SwaggerPetstore
|
||||||
|
//instance = new SwaggerPetstore.OuterBoolean();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('OuterBoolean', function() {
|
||||||
|
it('should create an instance of OuterBoolean', function() {
|
||||||
|
// uncomment below and update the code to test OuterBoolean
|
||||||
|
//var instane = new SwaggerPetstore.OuterBoolean();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.OuterBoolean);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,77 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.OuterComposite();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('OuterComposite', function() {
|
||||||
|
it('should create an instance of OuterComposite', function() {
|
||||||
|
// uncomment below and update the code to test OuterComposite
|
||||||
|
//var instane = new SwaggerPetstore.OuterComposite();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.OuterComposite);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property myNumber (base name: "my_number")', function() {
|
||||||
|
// uncomment below and update the code to test the property myNumber
|
||||||
|
//var instane = new SwaggerPetstore.OuterComposite();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property myString (base name: "my_string")', function() {
|
||||||
|
// uncomment below and update the code to test the property myString
|
||||||
|
//var instane = new SwaggerPetstore.OuterComposite();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property myBoolean (base name: "my_boolean")', function() {
|
||||||
|
// uncomment below and update the code to test the property myBoolean
|
||||||
|
//var instane = new SwaggerPetstore.OuterComposite();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,58 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('OuterEnum', function() {
|
||||||
|
it('should create an instance of OuterEnum', function() {
|
||||||
|
// uncomment below and update the code to test OuterEnum
|
||||||
|
//var instane = new SwaggerPetstore.OuterEnum();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.OuterEnum);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,60 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
// OuterNumber is not a member of SwaggerPetstore
|
||||||
|
//instance = new SwaggerPetstore.OuterNumber();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('OuterNumber', function() {
|
||||||
|
it('should create an instance of OuterNumber', function() {
|
||||||
|
// uncomment below and update the code to test OuterNumber
|
||||||
|
//var instane = new SwaggerPetstore.OuterNumber();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.OuterNumber);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,60 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
// OuterString is not a member of SwaggerPetstore
|
||||||
|
//instance = new SwaggerPetstore.OuterString();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('OuterString', function() {
|
||||||
|
it('should create an instance of OuterString', function() {
|
||||||
|
// uncomment below and update the code to test OuterString
|
||||||
|
//var instane = new SwaggerPetstore.OuterString();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.OuterString);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,95 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Pet();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Pet', function() {
|
||||||
|
it('should create an instance of Pet', function() {
|
||||||
|
// uncomment below and update the code to test Pet
|
||||||
|
//var instane = new SwaggerPetstore.Pet();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Pet);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property id (base name: "id")', function() {
|
||||||
|
// uncomment below and update the code to test the property id
|
||||||
|
//var instane = new SwaggerPetstore.Pet();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property category (base name: "category")', function() {
|
||||||
|
// uncomment below and update the code to test the property category
|
||||||
|
//var instane = new SwaggerPetstore.Pet();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property name (base name: "name")', function() {
|
||||||
|
// uncomment below and update the code to test the property name
|
||||||
|
//var instane = new SwaggerPetstore.Pet();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property photoUrls (base name: "photoUrls")', function() {
|
||||||
|
// uncomment below and update the code to test the property photoUrls
|
||||||
|
//var instane = new SwaggerPetstore.Pet();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property tags (base name: "tags")', function() {
|
||||||
|
// uncomment below and update the code to test the property tags
|
||||||
|
//var instane = new SwaggerPetstore.Pet();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property status (base name: "status")', function() {
|
||||||
|
// uncomment below and update the code to test the property status
|
||||||
|
//var instane = new SwaggerPetstore.Pet();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.ReadOnlyFirst();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('ReadOnlyFirst', function() {
|
||||||
|
it('should create an instance of ReadOnlyFirst', function() {
|
||||||
|
// uncomment below and update the code to test ReadOnlyFirst
|
||||||
|
//var instane = new SwaggerPetstore.ReadOnlyFirst();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.ReadOnlyFirst);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property bar (base name: "bar")', function() {
|
||||||
|
// uncomment below and update the code to test the property bar
|
||||||
|
//var instane = new SwaggerPetstore.ReadOnlyFirst();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property baz (base name: "baz")', function() {
|
||||||
|
// uncomment below and update the code to test the property baz
|
||||||
|
//var instane = new SwaggerPetstore.ReadOnlyFirst();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,65 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.SpecialModelName();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('SpecialModelName', function() {
|
||||||
|
it('should create an instance of SpecialModelName', function() {
|
||||||
|
// uncomment below and update the code to test SpecialModelName
|
||||||
|
//var instane = new SwaggerPetstore.SpecialModelName();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.SpecialModelName);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property specialPropertyName (base name: "$special[property.name]")', function() {
|
||||||
|
// uncomment below and update the code to test the property specialPropertyName
|
||||||
|
//var instane = new SwaggerPetstore.SpecialModelName();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.Tag();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('Tag', function() {
|
||||||
|
it('should create an instance of Tag', function() {
|
||||||
|
// uncomment below and update the code to test Tag
|
||||||
|
//var instane = new SwaggerPetstore.Tag();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.Tag);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property id (base name: "id")', function() {
|
||||||
|
// uncomment below and update the code to test the property id
|
||||||
|
//var instane = new SwaggerPetstore.Tag();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property name (base name: "name")', function() {
|
||||||
|
// uncomment below and update the code to test the property name
|
||||||
|
//var instane = new SwaggerPetstore.Tag();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
@ -0,0 +1,107 @@
|
|||||||
|
/**
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(root, factory) {
|
||||||
|
if (typeof define === 'function' && define.amd) {
|
||||||
|
// AMD.
|
||||||
|
define(['expect.js', '../../src/index'], factory);
|
||||||
|
} else if (typeof module === 'object' && module.exports) {
|
||||||
|
// CommonJS-like environments that support module.exports, like Node.
|
||||||
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
|
} else {
|
||||||
|
// Browser globals (root is window)
|
||||||
|
factory(root.expect, root.SwaggerPetstore);
|
||||||
|
}
|
||||||
|
}(this, function(expect, SwaggerPetstore) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var instance;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
instance = new SwaggerPetstore.User();
|
||||||
|
});
|
||||||
|
|
||||||
|
var getProperty = function(object, getter, property) {
|
||||||
|
// Use getter method if present; otherwise, get the property directly.
|
||||||
|
if (typeof object[getter] === 'function')
|
||||||
|
return object[getter]();
|
||||||
|
else
|
||||||
|
return object[property];
|
||||||
|
}
|
||||||
|
|
||||||
|
var setProperty = function(object, setter, property, value) {
|
||||||
|
// Use setter method if present; otherwise, set the property directly.
|
||||||
|
if (typeof object[setter] === 'function')
|
||||||
|
object[setter](value);
|
||||||
|
else
|
||||||
|
object[property] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
describe('User', function() {
|
||||||
|
it('should create an instance of User', function() {
|
||||||
|
// uncomment below and update the code to test User
|
||||||
|
//var instane = new SwaggerPetstore.User();
|
||||||
|
//expect(instance).to.be.a(SwaggerPetstore.User);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property id (base name: "id")', function() {
|
||||||
|
// uncomment below and update the code to test the property id
|
||||||
|
//var instane = new SwaggerPetstore.User();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property username (base name: "username")', function() {
|
||||||
|
// uncomment below and update the code to test the property username
|
||||||
|
//var instane = new SwaggerPetstore.User();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property firstName (base name: "firstName")', function() {
|
||||||
|
// uncomment below and update the code to test the property firstName
|
||||||
|
//var instane = new SwaggerPetstore.User();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property lastName (base name: "lastName")', function() {
|
||||||
|
// uncomment below and update the code to test the property lastName
|
||||||
|
//var instane = new SwaggerPetstore.User();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property email (base name: "email")', function() {
|
||||||
|
// uncomment below and update the code to test the property email
|
||||||
|
//var instane = new SwaggerPetstore.User();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property password (base name: "password")', function() {
|
||||||
|
// uncomment below and update the code to test the property password
|
||||||
|
//var instane = new SwaggerPetstore.User();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property phone (base name: "phone")', function() {
|
||||||
|
// uncomment below and update the code to test the property phone
|
||||||
|
//var instane = new SwaggerPetstore.User();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have the property userStatus (base name: "userStatus")', function() {
|
||||||
|
// uncomment below and update the code to test the property userStatus
|
||||||
|
//var instane = new SwaggerPetstore.User();
|
||||||
|
//expect(instance).to.be();
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}));
|
393
samples/client/petstore/javascript-es6/test/ApiClientTest.js
Normal file
393
samples/client/petstore/javascript-es6/test/ApiClientTest.js
Normal file
@ -0,0 +1,393 @@
|
|||||||
|
if (typeof module === 'object' && module.exports) {
|
||||||
|
var expect = require('expect.js');
|
||||||
|
var SwaggerPetstore = require('../src/index');
|
||||||
|
var sinon = require('sinon');
|
||||||
|
}
|
||||||
|
|
||||||
|
var apiClient = SwaggerPetstore.ApiClient.instance;
|
||||||
|
|
||||||
|
describe('ApiClient', function() {
|
||||||
|
describe('defaults', function() {
|
||||||
|
it('should have correct default values with the default API client', function() {
|
||||||
|
expect(apiClient).to.be.ok();
|
||||||
|
expect(apiClient.basePath).to.be('http://petstore.swagger.io:80/v2');
|
||||||
|
expect(apiClient.authentications).to.eql({
|
||||||
|
petstore_auth: {type: 'oauth2'},
|
||||||
|
http_basic_test: {type: 'basic'},
|
||||||
|
api_key: {type: 'apiKey', 'in': 'header', name: 'api_key'},
|
||||||
|
api_key_query: {type: 'apiKey', 'in': 'query', name: 'api_key_query'},
|
||||||
|
/* comment out the following as these fake security def (testing purpose)
|
||||||
|
* are removed from the spec, we'll add these back after updating the
|
||||||
|
* petstore server
|
||||||
|
*
|
||||||
|
test_http_basic: {type: 'basic'},
|
||||||
|
test_api_client_id: {
|
||||||
|
type: 'apiKey',
|
||||||
|
'in': 'header',
|
||||||
|
name: 'x-test_api_client_id'
|
||||||
|
},
|
||||||
|
test_api_client_secret: {
|
||||||
|
type: 'apiKey',
|
||||||
|
'in': 'header',
|
||||||
|
name: 'x-test_api_client_secret'
|
||||||
|
},
|
||||||
|
test_api_key_query: {
|
||||||
|
type: 'apiKey',
|
||||||
|
'in': 'query',
|
||||||
|
name: 'test_api_key_query'
|
||||||
|
},
|
||||||
|
test_api_key_header: {
|
||||||
|
type: 'apiKey',
|
||||||
|
'in': 'header',
|
||||||
|
name: 'test_api_key_header'
|
||||||
|
}*/
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should have correct default values with new API client and can customize it', function() {
|
||||||
|
var newClient = new SwaggerPetstore.ApiClient;
|
||||||
|
expect(newClient.basePath).to.be('http://petstore.swagger.io:80/v2');
|
||||||
|
expect(newClient.buildUrl('/abc', {})).to.be('http://petstore.swagger.io:80/v2/abc');
|
||||||
|
|
||||||
|
newClient.basePath = 'http://example.com';
|
||||||
|
expect(newClient.basePath).to.be('http://example.com');
|
||||||
|
expect(newClient.buildUrl('/abc', {})).to.be('http://example.com/abc');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#paramToString', function() {
|
||||||
|
it('should return empty string for null and undefined', function() {
|
||||||
|
expect(apiClient.paramToString(null)).to.be('');
|
||||||
|
expect(apiClient.paramToString(undefined)).to.be('');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should return string', function() {
|
||||||
|
expect(apiClient.paramToString('')).to.be('');
|
||||||
|
expect(apiClient.paramToString('abc')).to.be('abc');
|
||||||
|
expect(apiClient.paramToString(123)).to.be('123');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#buildCollectionParam', function() {
|
||||||
|
var param;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
param = ['aa', 'bb', 123];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for csv', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'csv')).to.be('aa,bb,123');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for ssv', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'ssv')).to.be('aa bb 123');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for tsv', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'tsv')).to.be('aa\tbb\t123');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for pipes', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'pipes')).to.be('aa|bb|123');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works for multi', function() {
|
||||||
|
expect(apiClient.buildCollectionParam(param, 'multi')).to.eql(['aa', 'bb', '123']);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('fails for invalid collection format', function() {
|
||||||
|
expect(function() { apiClient.buildCollectionParam(param, 'INVALID'); }).to.throwError();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#buildUrl', function() {
|
||||||
|
it('should work without path parameters in the path', function() {
|
||||||
|
expect(apiClient.buildUrl('/abc', {})).to
|
||||||
|
.be('http://petstore.swagger.io:80/v2/abc');
|
||||||
|
expect(apiClient.buildUrl('/abc/def?ok', {id: 123})).to
|
||||||
|
.be('http://petstore.swagger.io:80/v2/abc/def?ok');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should work with path parameters in the path', function() {
|
||||||
|
expect(apiClient.buildUrl('/{id}', {id: 123})).to
|
||||||
|
.be('http://petstore.swagger.io:80/v2/123');
|
||||||
|
expect(apiClient.buildUrl('/abc/{id}/{name}?ok', {id: 456, name: 'a b'})).to.
|
||||||
|
be('http://petstore.swagger.io:80/v2/abc/456/a%20b?ok');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#isJsonMime', function() {
|
||||||
|
it('should return true for JSON MIME', function() {
|
||||||
|
expect(apiClient.isJsonMime('application/json')).to.be(true);
|
||||||
|
expect(apiClient.isJsonMime('application/json; charset=UTF8')).to.be(true);
|
||||||
|
expect(apiClient.isJsonMime('APPLICATION/JSON')).to.be(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should return false for non-JSON MIME', function() {
|
||||||
|
expect(apiClient.isJsonMime('')).to.be(false);
|
||||||
|
expect(apiClient.isJsonMime('text/plain')).to.be(false);
|
||||||
|
expect(apiClient.isJsonMime('application/xml')).to.be(false);
|
||||||
|
expect(apiClient.isJsonMime('application/jsonp')).to.be(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('#applyAuthToRequest', function() {
|
||||||
|
var req, newClient;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
req = {
|
||||||
|
auth: function() {},
|
||||||
|
set: function() {},
|
||||||
|
query: function() {}
|
||||||
|
};
|
||||||
|
sinon.stub(req, 'auth');
|
||||||
|
sinon.stub(req, 'set');
|
||||||
|
sinon.stub(req, 'query');
|
||||||
|
newClient = new SwaggerPetstore.ApiClient();
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('basic', function() {
|
||||||
|
var authName = 'testBasicAuth';
|
||||||
|
var authNames = [authName];
|
||||||
|
var auth;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[authName] = {type: 'basic'};
|
||||||
|
auth = newClient.authentications[authName];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets auth header with username and password set', function() {
|
||||||
|
auth.username = 'user';
|
||||||
|
auth.password = 'pass';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.auth);
|
||||||
|
// 'dXNlcjpwYXNz' is base64-encoded string of 'user:pass'
|
||||||
|
sinon.assert.calledWithMatch(req.auth, 'user', 'pass');
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets header with only username set', function() {
|
||||||
|
auth.username = 'user';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.auth);
|
||||||
|
// 'dXNlcjo=' is base64-encoded string of 'user:'
|
||||||
|
sinon.assert.calledWithMatch(req.auth, 'user', '');
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets header with only password set', function() {
|
||||||
|
auth.password = 'pass';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.auth);
|
||||||
|
// 'OnBhc3M=' is base64-encoded string of ':pass'
|
||||||
|
sinon.assert.calledWithMatch(req.auth, '', 'pass');
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('does not set header when username and password are not set', function() {
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('apiKey', function() {
|
||||||
|
var authName = 'testApiKey';
|
||||||
|
var authNames = [authName];
|
||||||
|
var auth;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[authName] = {type: 'apiKey', name: 'api_key'};
|
||||||
|
auth = newClient.authentications[authName];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets api key in header', function() {
|
||||||
|
auth.in = 'header';
|
||||||
|
auth.apiKey = 'my-api-key';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.set);
|
||||||
|
sinon.assert.calledWithMatch(req.set, {'api_key': 'my-api-key'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets api key in query', function() {
|
||||||
|
auth.in = 'query';
|
||||||
|
auth.apiKey = 'my-api-key';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.query);
|
||||||
|
sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets api key in header with prefix', function() {
|
||||||
|
auth.in = 'header';
|
||||||
|
auth.apiKey = 'my-api-key';
|
||||||
|
auth.apiKeyPrefix = 'Key';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.set);
|
||||||
|
sinon.assert.calledWithMatch(req.set, {'api_key': 'Key my-api-key'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when api key is not set', function() {
|
||||||
|
auth.in = 'query';
|
||||||
|
auth.apiKey = null;
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('oauth2', function() {
|
||||||
|
var authName = 'testOAuth2';
|
||||||
|
var authNames = [authName];
|
||||||
|
var auth;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[authName] = {type: 'oauth2'};
|
||||||
|
auth = newClient.authentications[authName];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('sets access token in header', function() {
|
||||||
|
auth.accessToken = 'my-access-token';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.set);
|
||||||
|
sinon.assert.calledWithMatch(req.set, {'Authorization': 'Bearer my-access-token'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when access token is not set', function() {
|
||||||
|
auth.accessToken = null;
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('apiKey and oauth2', function() {
|
||||||
|
var apiKeyAuthName = 'testApiKey';
|
||||||
|
var oauth2Name = 'testOAuth2';
|
||||||
|
var authNames = [apiKeyAuthName, oauth2Name];
|
||||||
|
var apiKeyAuth, oauth2;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[apiKeyAuthName] = {type: 'apiKey', name: 'api_key', 'in': 'query'};
|
||||||
|
newClient.authentications[oauth2Name] = {type: 'oauth2'};
|
||||||
|
apiKeyAuth = newClient.authentications[apiKeyAuthName];
|
||||||
|
oauth2 = newClient.authentications[oauth2Name];
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when setting both api key and access token', function() {
|
||||||
|
apiKeyAuth.apiKey = 'my-api-key';
|
||||||
|
oauth2.accessToken = 'my-access-token';
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.query);
|
||||||
|
sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'});
|
||||||
|
sinon.assert.calledOnce(req.set);
|
||||||
|
sinon.assert.calledWithMatch(req.set, {'Authorization': 'Bearer my-access-token'});
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when setting only api key', function() {
|
||||||
|
apiKeyAuth.apiKey = 'my-api-key';
|
||||||
|
oauth2.accessToken = null;
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.calledOnce(req.query);
|
||||||
|
sinon.assert.calledWithMatch(req.query, {'api_key': 'my-api-key'});
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('works when neither api key nor access token is set', function() {
|
||||||
|
apiKeyAuth.apiKey = null;
|
||||||
|
oauth2.accessToken = null;
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('unknown type', function() {
|
||||||
|
var authName = 'unknown';
|
||||||
|
var authNames = [authName];
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
newClient.authentications[authName] = {type: 'UNKNOWN'};
|
||||||
|
});
|
||||||
|
|
||||||
|
it('throws error for unknown auth type', function() {
|
||||||
|
expect(function() {
|
||||||
|
newClient.applyAuthToRequest(req, authNames);
|
||||||
|
}).to.throwError();
|
||||||
|
sinon.assert.notCalled(req.set);
|
||||||
|
sinon.assert.notCalled(req.auth);
|
||||||
|
sinon.assert.notCalled(req.query);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
describe('#defaultHeaders', function() {
|
||||||
|
it('should initialize default headers to be an empty object', function() {
|
||||||
|
expect(apiClient.defaultHeaders).to.eql({});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should put default headers in request', function() {
|
||||||
|
var newClient = new SwaggerPetstore.ApiClient;
|
||||||
|
newClient.defaultHeaders['Content-Type'] = 'text/plain'
|
||||||
|
newClient.defaultHeaders['api_key'] = 'special-key'
|
||||||
|
|
||||||
|
var expected = {'Content-Type': 'text/plain', 'api_key': 'special-key'};
|
||||||
|
expect(newClient.defaultHeaders).to.eql(expected);
|
||||||
|
var req = makeDumbRequest(newClient);
|
||||||
|
req.unset('User-Agent');
|
||||||
|
expect(req.header).to.eql(expected);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should override default headers with provided header params', function() {
|
||||||
|
var newClient = new SwaggerPetstore.ApiClient;
|
||||||
|
newClient.defaultHeaders['Content-Type'] = 'text/plain'
|
||||||
|
newClient.defaultHeaders['api_key'] = 'special-key'
|
||||||
|
|
||||||
|
var headerParams = {'Content-Type': 'application/json', 'Authorization': 'Bearer test-token'}
|
||||||
|
var expected = {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'api_key': 'special-key',
|
||||||
|
'Authorization': 'Bearer test-token'
|
||||||
|
};
|
||||||
|
var req = makeDumbRequest(newClient, {headerParams: headerParams});
|
||||||
|
req.unset('User-Agent');
|
||||||
|
expect(req.header).to.eql(expected);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
function makeDumbRequest(apiClient, opts) {
|
||||||
|
opts = opts || {};
|
||||||
|
var path = opts.path || '/store/inventory';
|
||||||
|
var httpMethod = opts.httpMethod || 'GET';
|
||||||
|
var pathParams = opts.pathParams || {};
|
||||||
|
var queryParams = opts.queryParams || {};
|
||||||
|
var headerParams = opts.headerParams || {};
|
||||||
|
var formParams = opts.formParams || {};
|
||||||
|
var bodyParam = opts.bodyParam;
|
||||||
|
var authNames = [];
|
||||||
|
var contentTypes = opts.contentTypes || [];
|
||||||
|
var accepts = opts.accepts || [];
|
||||||
|
var callback = opts.callback;
|
||||||
|
return apiClient.callApi(path, httpMethod, pathParams, queryParams,
|
||||||
|
headerParams, formParams, bodyParam, authNames, contentTypes, accepts);
|
||||||
|
}
|
@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -20,15 +20,15 @@
|
|||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
}
|
}
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
}(this, function(expect, OpenApiPetstore) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var instance;
|
var instance;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
instance = new SwaggerPetstore.AnotherFakeApi();
|
instance = new OpenApiPetstore.AnotherFakeApi();
|
||||||
});
|
});
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
var getProperty = function(object, getter, property) {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -20,15 +20,15 @@
|
|||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
}
|
}
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
}(this, function(expect, OpenApiPetstore) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var instance;
|
var instance;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
instance = new SwaggerPetstore.FakeApi();
|
instance = new OpenApiPetstore.FakeApi();
|
||||||
});
|
});
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
var getProperty = function(object, getter, property) {
|
||||||
@ -88,6 +88,16 @@
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
describe('testBodyWithQueryParams', function() {
|
||||||
|
it('should call testBodyWithQueryParams successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testBodyWithQueryParams
|
||||||
|
//instance.testBodyWithQueryParams(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
describe('testClientModel', function() {
|
describe('testClientModel', function() {
|
||||||
it('should call testClientModel successfully', function(done) {
|
it('should call testClientModel successfully', function(done) {
|
||||||
//uncomment below and update the code to test testClientModel
|
//uncomment below and update the code to test testClientModel
|
||||||
@ -118,6 +128,26 @@
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
describe('testInlineAdditionalProperties', function() {
|
||||||
|
it('should call testInlineAdditionalProperties successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testInlineAdditionalProperties
|
||||||
|
//instance.testInlineAdditionalProperties(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
describe('testJsonFormData', function() {
|
||||||
|
it('should call testJsonFormData successfully', function(done) {
|
||||||
|
//uncomment below and update the code to test testJsonFormData
|
||||||
|
//instance.testJsonFormData(function(error) {
|
||||||
|
// if (error) throw error;
|
||||||
|
//expect().to.be();
|
||||||
|
//});
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -20,15 +20,15 @@
|
|||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
}
|
}
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
}(this, function(expect, OpenApiPetstore) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var instance;
|
var instance;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
instance = new SwaggerPetstore.FakeClassnameTags123Api();
|
instance = new OpenApiPetstore.FakeClassnameTags123Api();
|
||||||
});
|
});
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
var getProperty = function(object, getter, property) {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -20,15 +20,15 @@
|
|||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
}
|
}
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
}(this, function(expect, OpenApiPetstore) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var instance;
|
var instance;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
instance = new SwaggerPetstore.PetApi();
|
instance = new OpenApiPetstore.PetApi();
|
||||||
});
|
});
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
var getProperty = function(object, getter, property) {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -20,15 +20,15 @@
|
|||||||
factory(require('expect.js'), require('../../src/index'));
|
factory(require('expect.js'), require('../../src/index'));
|
||||||
} else {
|
} else {
|
||||||
// Browser globals (root is window)
|
// Browser globals (root is window)
|
||||||
factory(root.expect, root.SwaggerPetstore);
|
factory(root.expect, root.OpenApiPetstore);
|
||||||
}
|
}
|
||||||
}(this, function(expect, SwaggerPetstore) {
|
}(this, function(expect, OpenApiPetstore) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var instance;
|
var instance;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
instance = new SwaggerPetstore.StoreApi();
|
instance = new OpenApiPetstore.StoreApi();
|
||||||
});
|
});
|
||||||
|
|
||||||
var getProperty = function(object, getter, property) {
|
var getProperty = function(object, getter, property) {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user