node.js - Swagger Version Error -
i have swagger version error :
cat connect.js :
/*jshint node:true*/ 'use strict'; var ari = require('ari-client'); var util = require('util'); ari.connect('http://localhost:8088', 'sa', 'test', clientloaded); // handler client being loaded function clientloaded (err, client) { if (err) { throw err; } }
and when try : #node connect.js - returns :
[ 'this api using deprecated version of swagger! please see http://github.com/wordnik/swagger-core/wiki more info' ]
this message means server you're connecting based on swagger 1.2 specification or earlier. swagger @ 2.0.
the message you're getting tells me you're using old client. shouldn't see reference wordnik in client made in last 1.5 years.
Comments
Post a Comment