move validate inside lib and bump package version and its dependencies

This commit is contained in:
Amar Zavery 2017-04-14 13:45:07 -07:00
Родитель 0dfd51065b
Коммит 903fba38f9
7 изменённых файлов: 16 добавлений и 14 удалений

Просмотреть файл

@ -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",