-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-script-demo.log
35 lines (23 loc) · 5.58 KB
/
run-script-demo.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
> [email protected] demo
> grunt demo
Running "demo" task
Running Version 1.2 Demo test
Invalid 1.2 Swagger API file 'undefined'
Reading (1.2): './examples/1.2/api/api-doc.json'
Invalid v1 API Swagger filename: 'undefined'
Reading (1.2): './examples/1.2/api/api-doc.json'
apiDocJson: {"apiVersion":"1.0","apis":[{"description":"Operations on Weather","path":"/weather"}],"authorizations":{},"info":{"description":"API for getting the current weather information.","title":"Simple Weather API"},"swaggerVersion":"1.2"}
apiDeclarations: [{"apiVersion":"1.0","apis":[{"operations":[{"authorizations":{},"method":"GET","nickname":"Weather_getWeather","parameters":[{"name":"location","paramType":"query","description":"The MSN Weather location search string.","required":true,"type":"string"},{"name":"unit","paramType":"query","description":"The unit, either 'C' or 'F'.","enum":["C","F"],"defaultValue":"F","required":true,"type":"string"}],"responseMessages":[{"code":400,"message":"Invalid request.","responseModel":"Error"},{"code":200,"message":"Successful request.","responseModel":"Weather"}],"notes":"Returns the current weather for the requested location using the requested unit.","type":"Weather"}],"path":"/weather"}],"basePath":"http://localhost:3000/api","models":{"CurrentWeather":{"id":"CurrentWeather","properties":{"temperature":{"type":"string"},"skycode":{"type":"string"},"skytext":{"type":"string"},"date":{"type":"string"},"observationtime":{"type":"string"},"observationpoint":{"type":"string"},"feelslike":{"type":"string"},"humidity":{"type":"string"},"winddisplay":{"type":"string"},"day":{"type":"string"},"shortday":{"type":"string"},"windspeed":{"type":"string"},"imageUrl":{"type":"string"}},"required":["temperature","skycode","skytext","date","observationtime","observationpoint","feelslike","humidity","winddisplay","day","shortday","windspeed","imageUrl"]},"Error":{"id":"Error","properties":{"message":{"type":"string"}},"required":["message"]},"Forecast":{"id":"Forecast","properties":{"low":{"type":"string"},"high":{"type":"string"},"skycodeday":{"type":"string"},"skytextday":{"type":"string"},"date":{"type":"string"},"day":{"type":"string"},"shortday":{"type":"string"},"precip":{"type":"string"}},"required":["low","high","skycodeday","skytextday","date","day","shortday","precip"]},"Location":{"id":"Location","properties":{"name":{"type":"string"},"zipcode":{"type":"string"},"lat":{"type":"string"},"long":{"type":"string"},"timezone":{"type":"string"},"alert":{"type":"string"},"degreetype":{"type":"string","enum":["C","F"]},"imagerelativeurl":{"type":"string"}},"required":["name","lat","long","timezone","degreetype"]},"Weather":{"id":"Weather","properties":{"location":{"$ref":"Location"},"current":{"$ref":"CurrentWeather"},"forecast":{"type":"array","items":{"$ref":"Forecast"}}},"required":["current","location","forecast"]}},"produces":["application/json"],"resourcePath":"/weather","swaggerVersion":"1.2"}]
ERROR: callback is required
1.2 RESULT: false
Running Version 2.0 Demo test
Invalid 2.0 Swagger API file 'undefined'
Reading (2.0): './examples/2.0/api/swagger.json'
swaggerDoc: {"swagger":2,"info":{"title":"Simple Weather API","description":"API for getting the current weather information.","version":"1.0"},"produces":["application/json"],"host":"localhost:3000","basePath":"/api","paths":{"/weather":{"get":{"x-swagger-router-controller":"Weather","operationId":"getWeather","tags":["/weather"],"description":"Returns the current weather for the requested location using the requested unit.","parameters":[{"name":"location","in":"query","description":"The MSN Weather location search string.","required":true,"type":"string"},{"name":"unit","in":"query","description":"The unit, either 'C' or 'F'.","required":true,"type":"string"}],"responses":{"200":{"description":"Successful request.","schema":{"$ref":"Weather"}},"default":{"description":"Invalid request.","schema":{"$ref":"Error"}}}}}},"definitions":{"CurrentWeather":{"properties":{"temperature":{"type":"string"},"skycode":{"type":"string"},"skytext":{"type":"string"},"date":{"type":"string"},"observationtime":{"type":"string"},"observationpoint":{"type":"string"},"feelslike":{"type":"string"},"humidity":{"type":"string"},"winddisplay":{"type":"string"},"day":{"type":"string"},"shortday":{"type":"string"},"windspeed":{"type":"string"},"imageUrl":{"type":"string"}},"required":["temperature","skycode","skytext","date","observationtime","observationpoint","feelslike","humidity","winddisplay","day","shortday","windspeed","imageUrl"]},"Error":{"properties":{"message":{"type":"string"}},"required":["message"]},"Forecast":{"properties":{"low":{"type":"string"},"high":{"type":"string"},"skycodeday":{"type":"string"},"skytextday":{"type":"string"},"date":{"type":"string"},"day":{"type":"string"},"shortday":{"type":"string"},"precip":{"type":"string"}},"required":["low","high","skycodeday","skytextday","date","day","shortday","precip"]},"Location":{"type":"object","properties":{"name":{"type":"string"},"zipcode":{"type":"string"},"lat":{"type":"string"},"long":{"type":"string"},"timezone":{"type":"string"},"alert":{"type":"string"},"degreetype":{"type":"string","enum":["C","F"]},"imagerelativeurl":{"type":"string"}},"required":["name","lat","long","timezone","degreetype"]},"Weather":{"properties":{"location":{"$ref":"Location"},"current":{"$ref":"CurrentWeather"},"forecast":{"type":"array","items":{"$ref":"Forecast"}}},"required":["current","location","forecast"]}}}
ERROR: callback is required
2.0 RESULT: false
Running Version 2.0 YAML Demo test
Reading (2.0): './examples/2.0/api/swagger.yaml'
ERROR: Unexpected identifier
YAML 2.0 RESULT: false
Done.