From a8273ef6321e34ee41a9139bf04d323f5e98843b Mon Sep 17 00:00:00 2001 From: yaroslav-codefresh Date: Tue, 2 Apr 2019 18:05:16 +0300 Subject: [PATCH 1/2] validation --- bin/cf-openapi | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cf-openapi b/bin/cf-openapi index 64e11e9..355111b 100755 --- a/bin/cf-openapi +++ b/bin/cf-openapi @@ -11,7 +11,7 @@ const { components: { processor } } = require('../index'); const sdkValidator = require('./sdkValidator'); const tmpFile = path.resolve(os.tmpdir(), 'openapi.json'); -const speccyRelativeRulesPath = '../../../validation-rules'; +const speccyRelativeRulesPath = './node_modules/codefresh-io/cf-openapi/validation-rules'; function collect(val, item) { diff --git a/package.json b/package.json index 1460af4..a7e3efc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@codefresh-io/cf-openapi", - "version": "0.0.2", + "version": "0.0.3", "scripts": { "test": "jest --runInBand", "eslint": "eslint lib/**", From 610c74a6fe0514fdf0073cb436ff66deb97769da Mon Sep 17 00:00:00 2001 From: yaroslav-codefresh Date: Tue, 2 Apr 2019 18:14:14 +0300 Subject: [PATCH 2/2] validation --- bin/cf-openapi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cf-openapi b/bin/cf-openapi index 355111b..8c0f206 100755 --- a/bin/cf-openapi +++ b/bin/cf-openapi @@ -11,7 +11,7 @@ const { components: { processor } } = require('../index'); const sdkValidator = require('./sdkValidator'); const tmpFile = path.resolve(os.tmpdir(), 'openapi.json'); -const speccyRelativeRulesPath = './node_modules/codefresh-io/cf-openapi/validation-rules'; +const speccyRelativeRulesPath = '../../codefresh-io/cf-openapi/validation-rules'; function collect(val, item) {