forked from loafle/openapi-generator-original
Code reformatting
This commit is contained in:
@@ -1,61 +1,57 @@
|
||||
'use strict';
|
||||
|
||||
exports.getInventory = function() {
|
||||
exports.getInventory = function () {
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = {
|
||||
"key" : 123
|
||||
};
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = {
|
||||
"key": 123
|
||||
};
|
||||
|
||||
|
||||
if (Object.keys(examples).length > 0)
|
||||
return examples[Object.keys(examples)[0]];
|
||||
|
||||
|
||||
if(Object.keys(examples).length > 0)
|
||||
return examples[Object.keys(examples)[0]];
|
||||
|
||||
}
|
||||
exports.placeOrder = function(body) {
|
||||
exports.placeOrder = function (body) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = {
|
||||
"id" : 123456789,
|
||||
"petId" : 123456789,
|
||||
"complete" : true,
|
||||
"status" : "aeiou",
|
||||
"quantity" : 123,
|
||||
"shipDate" : "2015-03-19T21:51:51.599+0000"
|
||||
};
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = {
|
||||
"id": 123456789,
|
||||
"petId": 123456789,
|
||||
"complete": true,
|
||||
"status": "aeiou",
|
||||
"quantity": 123,
|
||||
"shipDate": "2015-03-19T21:51:51.599+0000"
|
||||
};
|
||||
|
||||
|
||||
if (Object.keys(examples).length > 0)
|
||||
return examples[Object.keys(examples)[0]];
|
||||
|
||||
|
||||
if(Object.keys(examples).length > 0)
|
||||
return examples[Object.keys(examples)[0]];
|
||||
|
||||
}
|
||||
exports.getOrderById = function(orderId) {
|
||||
exports.getOrderById = function (orderId) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = {
|
||||
"id" : 123456789,
|
||||
"petId" : 123456789,
|
||||
"complete" : true,
|
||||
"status" : "aeiou",
|
||||
"quantity" : 123,
|
||||
"shipDate" : "2015-03-19T21:51:51.603+0000"
|
||||
};
|
||||
|
||||
var examples = {};
|
||||
|
||||
examples['application/json'] = {
|
||||
"id": 123456789,
|
||||
"petId": 123456789,
|
||||
"complete": true,
|
||||
"status": "aeiou",
|
||||
"quantity": 123,
|
||||
"shipDate": "2015-03-19T21:51:51.603+0000"
|
||||
};
|
||||
|
||||
|
||||
if (Object.keys(examples).length > 0)
|
||||
return examples[Object.keys(examples)[0]];
|
||||
|
||||
|
||||
if(Object.keys(examples).length > 0)
|
||||
return examples[Object.keys(examples)[0]];
|
||||
|
||||
}
|
||||
exports.deleteOrder = function(orderId) {
|
||||
exports.deleteOrder = function (orderId) {
|
||||
|
||||
var examples = {};
|
||||
|
||||
var examples = {};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user