From 69096d13e4f40c876b64c433199028b2f300fa73 Mon Sep 17 00:00:00 2001 From: Gregory Koberger Date: Wed, 22 Mar 2017 14:01:22 -0700 Subject: [PATCH] Fix code samples --- utils.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/utils.js b/utils.js index f89504902..09c059e13 100644 --- a/utils.js +++ b/utils.js @@ -247,19 +247,16 @@ exports.swaggerInlineExample = function(_lang) { 'parameters:', ' - (path) petId=2* {Integer} The pet ID', ' - (query) limit {Integer:int32} The number of resources to return', - 'responses:', - ' 200:', - ' description: It works!', ]; var languages = { - 'js': ['/*', ' * ', '*/', 'route.get("/pet/:petId", pet.show);'], - 'java': ['/*', ' * ', '*/', 'public String getPet(id) {'], - 'php': ['/*', ' * ', '*/', 'function showPet($id) {'], + 'js': ['/*', ' * ', ' */', 'route.get("/pet/:petId", pet.show);'], + 'java': ['/*', ' * ', ' */', 'public String getPet(id) {'], + 'php': ['/*', ' * ', ' */', 'function showPet($id) {'], 'coffee': ['###', '', '###', "route.get '/pet/:petId', pet.show"], 'rb': ['=begin', '', '=end', "get '/pet/:petId' do"], 'py': ['"""', '', '"""', "def getPet(id):"], - 'go': ['/*', ' * ', '*/', 'func getPet(id) {'], + 'go': ['/*', ' * ', ' */', 'func getPet(id) {'], }; _lang = _lang.toLowerCase();