move validate inside lib and bump package version and its dependencies
This commit is contained in:
Родитель
0dfd51065b
Коммит
903fba38f9
6
index.js
6
index.js
|
@ -3,7 +3,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
var validate = require('./validate');
|
||||
var validate = require('./lib/validate');
|
||||
var utils = require('./lib/util/utils');
|
||||
|
||||
exports.getDocumentsFromCompositeSwagger = validate.getDocumentsFromCompositeSwagger;
|
||||
|
@ -13,4 +13,6 @@ exports.validateExamples = validate.validateExamples;
|
|||
exports.validateExamplesInCompositeSpec = validate.validateExamplesInCompositeSpec;
|
||||
exports.Validator = require('./lib/specValidator');
|
||||
exports.log = require('./lib/util/logging');
|
||||
exports.executePromisesSequentially = utils.executePromisesSequentially;
|
||||
exports.executePromisesSequentially = utils.executePromisesSequentially;
|
||||
exports.resolveSpec = validate.resolveSpec;
|
||||
exports.resolveCompositeSpec = validate.resolveCompositeSpec;
|
|
@ -5,7 +5,7 @@
|
|||
var util = require('util'),
|
||||
ExecutionEngine = require('../executionEngine'),
|
||||
log = require('../util/logging'),
|
||||
validate = require('../../validate');
|
||||
validate = require('../validate');
|
||||
|
||||
// exports.command = 'live-test <spec-path>';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
'use strict';
|
||||
var util = require('util'),
|
||||
log = require('../util/logging'),
|
||||
validate = require('../../validate');
|
||||
validate = require('../validate');
|
||||
|
||||
exports.command = 'resolve-spec <spec-path>';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
'use strict';
|
||||
var util = require('util'),
|
||||
log = require('../util/logging'),
|
||||
validate = require('../../validate');
|
||||
validate = require('../validate');
|
||||
|
||||
exports.command = 'validate-example <spec-path>';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
'use strict';
|
||||
var util = require('util'),
|
||||
log = require('../util/logging'),
|
||||
validate = require('../../validate');
|
||||
validate = require('../validate');
|
||||
|
||||
exports.command = 'validate-spec <spec-path>';
|
||||
|
||||
|
|
|
@ -8,13 +8,13 @@ var fs = require('fs'),
|
|||
msrest = require('ms-rest'),
|
||||
msrestazure = require('ms-rest-azure'),
|
||||
ResourceManagementClient = require('azure-arm-resource').ResourceManagementClient,
|
||||
log = require('./lib/util/logging'),
|
||||
utils = require('./lib/util/utils'),
|
||||
Constants = require('./lib/util/constants'),
|
||||
log = require('./util/logging'),
|
||||
utils = require('./util/utils'),
|
||||
Constants = require('./util/constants'),
|
||||
path = require('path'),
|
||||
util = require('util'),
|
||||
SpecValidator = require('./lib/specValidator'),
|
||||
SpecResolver = require('./lib/specResolver');
|
||||
SpecValidator = require('./specValidator'),
|
||||
SpecResolver = require('./specResolver');
|
||||
|
||||
exports = module.exports;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oav",
|
||||
"version": "0.1.4",
|
||||
"version": "0.2.0",
|
||||
"author": {
|
||||
"name": "Microsoft Corporation",
|
||||
"email": "azsdkteam@microsoft.com",
|
||||
|
@ -13,8 +13,8 @@
|
|||
"json-pointer": "^0.6.0",
|
||||
"js-yaml": "^3.8.2",
|
||||
"moment": "^2.14.1",
|
||||
"ms-rest": "^2.0.0",
|
||||
"ms-rest-azure": "^2.1.0",
|
||||
"ms-rest": "^2.1.0",
|
||||
"ms-rest-azure": "^2.1.1",
|
||||
"request": "^2.79.0",
|
||||
"sway": "amarzavery/sway#validation",
|
||||
"winston": "^2.3.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче