oas-normalize 4.0.3 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +32 -11
  2. package/index.js +21 -30
  3. package/package.json +5 -6
  4. package/CHANGELOG.md +0 -261
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- OpenAPI 3 or Swagger 2? YAML or JSON? URL, path, string or object? Who cares! It just works.
1
+ OpenAPI 3.x or Swagger 2.0? YAML or JSON? URL, path, string or object? Who cares! It just works.
2
2
 
3
3
  This module uses a bunch of other great modules to do the heavy lifting, and normalizes everything!
4
4
 
@@ -19,12 +19,16 @@ It's pretty simple:
19
19
  ```javascript
20
20
  const OASNormalize = require('oas-normalize');
21
21
 
22
- const oas = new OASNormalize('https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore-expanded.yaml'); // Or a string, pathname, JSON blob, whatever
22
+ const oas = new OASNormalize(
23
+ // Or a string, pathname, JSON blob, whatever
24
+ 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore-expanded.yaml'
25
+ );
23
26
 
24
27
  oas.validate().then(definition => {
25
- console.log(definition); // definition will always be JSON, and valid
28
+ // Definition will always be JSON, and valid.
29
+ console.log(definition);
26
30
  }).catch(err => {
27
- console.log(err.errors);
31
+ console.log(err);
28
32
  });
29
33
  ```
30
34
 
@@ -34,13 +38,16 @@ For validation errors, when available, you'll get back an object:
34
38
 
35
39
  ```json
36
40
  {
37
- "errors": [
38
- {
39
- "message": "User-friendly message",
40
- "path": [...array of the path to the error...]
41
- }
42
- ],
43
- "full": ...raw errors...
41
+ "details": [
42
+ // Ajv pathing errors. For example:
43
+ /* {
44
+ "instancePath": "/components/securitySchemes/tlsAuth",
45
+ "schemaPath": "#/properties/securitySchemes/patternProperties/%5E%5Ba-zA-Z0-9%5C.%5C-_%5D%2B%24/oneOf",
46
+ "keyword": "oneOf",
47
+ "params": { "passingSchemas": null },
48
+ "message": "must match exactly one schema in oneOf"
49
+ }, */
50
+ ]
44
51
  }
45
52
  ```
46
53
 
@@ -76,3 +83,17 @@ For security reasons, you need to opt into allowing fetching by a local path. To
76
83
  ```js
77
84
  const oas = new OASNormalize('./petstore.json', { enablePaths: true })
78
85
  ```
86
+
87
+ ### Colorized errors
88
+
89
+ If you wish errors from `.validate()` to be styled and colorized, supply `colorizeErrors: true` to your instance of `OASNormalize`:
90
+
91
+ ```js
92
+ const oas = new OASNormalize('https://example.com/petstore.json', {
93
+ colorizeErrors: true,
94
+ })
95
+ ```
96
+
97
+ Error messages will look like such:
98
+
99
+ <img src="https://user-images.githubusercontent.com/33762/137796648-7e1157c2-cee4-466e-9129-dd2a743dd163.png" width="600" />
package/index.js CHANGED
@@ -1,13 +1,18 @@
1
1
  const fetch = require('node-fetch');
2
2
  const fs = require('fs');
3
3
  const converter = require('swagger2openapi');
4
- const swaggerParser = require('@apidevtools/swagger-parser');
4
+ const openapiParser = require('@readme/openapi-parser');
5
5
  const utils = require('./lib/utils');
6
6
 
7
7
  class oasNormalize {
8
8
  constructor(file, opts) {
9
9
  this.file = file;
10
- this.opts = { enablePaths: false, ...opts };
10
+ this.opts = {
11
+ colorizeErrors: false,
12
+ enablePaths: false,
13
+ ...opts,
14
+ };
15
+
11
16
  this.type = utils.type(this.file);
12
17
 
13
18
  this.cache = {
@@ -51,7 +56,7 @@ class oasNormalize {
51
56
  if (this.cache.bundle) return Promise.resolve(this.cache.bundle);
52
57
 
53
58
  return this.load()
54
- .then(schema => swaggerParser.bundle(schema))
59
+ .then(schema => openapiParser.bundle(schema))
55
60
  .then(bundle => {
56
61
  this.cache.bundle = bundle;
57
62
  return bundle;
@@ -62,29 +67,35 @@ class oasNormalize {
62
67
  if (this.cache.deref) return Promise.resolve(this.cache.deref);
63
68
 
64
69
  return this.load()
65
- .then(schema => swaggerParser.dereference(schema))
70
+ .then(schema => openapiParser.dereference(schema))
66
71
  .then(dereferenced => {
67
72
  this.cache.deref = dereferenced;
68
73
  return dereferenced;
69
74
  });
70
75
  }
71
76
 
72
- async validate(convertToLatest) {
77
+ async validate(convertToLatest = false) {
78
+ const colorizeErrors = this.opts.colorizeErrors;
79
+
73
80
  return this.load().then(async schema => {
74
81
  const baseVersion = parseInt(utils.version(schema), 10);
75
82
 
76
83
  if (baseVersion === 1) {
77
84
  return Promise.reject(new Error('Swagger v1.2 is unsupported.'));
78
85
  } else if (baseVersion === 2 || baseVersion === 3) {
79
- // `swaggerParser.validate()` dereferences schemas at the same time as validation and does
86
+ // `openapiParser.validate()` dereferences schemas at the same time as validation and does
80
87
  // not give us an option to disable this. Since all we already have a dereferencing method
81
88
  // on this library and our `validate()` method here just needs to tell us if the definition
82
- // is valid or not we need to clone it before passing it over to `swagger-parser` so as to
89
+ // is valid or not we need to clone it before passing it over to `openapi-parser` so as to
83
90
  // not run into pass-by-reference problems.
84
91
  const clonedSchema = JSON.parse(JSON.stringify(schema));
85
92
 
86
- return swaggerParser
87
- .validate(clonedSchema)
93
+ return openapiParser
94
+ .validate(clonedSchema, {
95
+ validate: {
96
+ colorizeErrors,
97
+ },
98
+ })
88
99
  .then(() => {
89
100
  if (!convertToLatest) {
90
101
  return schema;
@@ -94,27 +105,7 @@ class oasNormalize {
94
105
  return options.openapi;
95
106
  });
96
107
  })
97
- .catch(err => {
98
- const error = new Error(err.message.replace(/\[object Object\]/g, 'Schema'));
99
- error.full = err;
100
-
101
- if (err.details && err.details.length) {
102
- error.errors = [
103
- {
104
- message: err.details[0].message,
105
- path: err.details[0].path,
106
- },
107
- ];
108
- } else {
109
- error.errors = [
110
- {
111
- message: err.message.replace(/\[object Object\]/g, 'Schema'),
112
- },
113
- ];
114
- }
115
-
116
- return Promise.reject(error);
117
- });
108
+ .catch(err => Promise.reject(err));
118
109
  }
119
110
 
120
111
  return Promise.reject(new Error('The supplied API definition is unsupported.'));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oas-normalize",
3
- "version": "4.0.3",
4
- "description": "OpenAPI 3 or Swagger 2? YAML or JSON? URL, path, string or object? Who cares! It just works.",
3
+ "version": "5.0.3",
4
+ "description": "OpenAPI 3.x or Swagger 2.0? YAML or JSON? URL, path, string or object? Who cares! It just works.",
5
5
  "main": "index.js",
6
6
  "engines": {
7
7
  "node": "^12 || ^14 || ^16"
@@ -32,19 +32,18 @@
32
32
  "lint": "eslint .",
33
33
  "pretest": "npm run lint",
34
34
  "prettier": "prettier --list-different --write \"./**/**.{js,jsx}\"",
35
- "release": "npx conventional-changelog-cli -i CHANGELOG.md -s",
36
35
  "test": "jest --coverage"
37
36
  },
38
37
  "license": "MIT",
39
38
  "dependencies": {
40
- "@apidevtools/swagger-parser": "^10.0.3",
39
+ "@readme/openapi-parser": "^1.1.0",
41
40
  "js-yaml": "^4.1.0",
42
41
  "node-fetch": "^2.6.1",
43
42
  "swagger2openapi": "^7.0.8"
44
43
  },
45
44
  "devDependencies": {
46
- "@readme/eslint-config": "^7.1.1",
47
- "@readme/oas-examples": "^4.2.0",
45
+ "@readme/eslint-config": "^7.2.2",
46
+ "@readme/oas-examples": "^4.3.1",
48
47
  "eslint": "^7.32.0",
49
48
  "jest": "^27.2.0",
50
49
  "nock": "^13.1.1",
package/CHANGELOG.md DELETED
@@ -1,261 +0,0 @@
1
- ## <small>4.0.3 (2021-10-04)</small>
2
-
3
- * chore(deps-dev): bump jest from 27.2.0 to 27.2.4 (#158) ([e85bcc0](https://github.com/readmeio/oas-normalize/commit/e85bcc0)), closes [#158](https://github.com/readmeio/oas-normalize/issues/158)
4
- * chore(deps): bump actions/setup-node from 2.4.0 to 2.4.1 (#160) ([e81d942](https://github.com/readmeio/oas-normalize/commit/e81d942)), closes [#160](https://github.com/readmeio/oas-normalize/issues/160)
5
- * chore(deps): bump node-fetch from 2.6.1 to 2.6.5 (#159) ([2f0918a](https://github.com/readmeio/oas-normalize/commit/2f0918a)), closes [#159](https://github.com/readmeio/oas-normalize/issues/159)
6
- * docs: adding a code of conduct ([600c0ff](https://github.com/readmeio/oas-normalize/commit/600c0ff))
7
-
8
-
9
-
10
- ## <small>4.0.1 (2021-09-01)</small>
11
-
12
- * chore(deps-dev): bump @readme/eslint-config from 6.0.0 to 6.1.0 (#157) ([df79698](https://github.com/readmeio/oas-normalize/commit/df79698)), closes [#157](https://github.com/readmeio/oas-normalize/issues/157)
13
- * chore(deps-dev): bump nock from 13.1.2 to 13.1.3 (#156) ([3ac7fc9](https://github.com/readmeio/oas-normalize/commit/3ac7fc9)), closes [#156](https://github.com/readmeio/oas-normalize/issues/156)
14
- * chore(deps-dev): removing conventional-changelog-cli in favor of npx ([7c28a12](https://github.com/readmeio/oas-normalize/commit/7c28a12))
15
- * ci: ignoring node-fetch after v3 because its now an esm package ([3ea35aa](https://github.com/readmeio/oas-normalize/commit/3ea35aa))
16
-
17
-
18
-
19
- ## 4.0.0 (2021-08-26)
20
-
21
- > 🚨 &nbsp;**Breaking change!**
22
- >
23
- > `.validate()` will no longer dereference schemas. If you need to dereference before or after validating, you shoudl use the `.deref()` method instead.
24
-
25
- * fix: stop dereferencing when running spec validation (#153) ([7b706db](https://github.com/readmeio/oas-normalize/commit/7b706db)), closes [#153](https://github.com/readmeio/oas-normalize/issues/153)
26
- * docs: adding a pull request template ([16da316](https://github.com/readmeio/oas-normalize/commit/16da316))
27
- * docs: make docs more OpenAPI friendly (#152) ([68cfc34](https://github.com/readmeio/oas-normalize/commit/68cfc34)), closes [#152](https://github.com/readmeio/oas-normalize/issues/152)
28
-
29
-
30
-
31
- ## <small>3.0.5 (2021-08-20)</small>
32
-
33
- * chore: running npm audit ([6dc30cf](https://github.com/readmeio/oas-normalize/commit/6dc30cf))
34
- * chore(deps-dev): bump nock from 13.1.1 to 13.1.2 (#150) ([dba5e40](https://github.com/readmeio/oas-normalize/commit/dba5e40)), closes [#150](https://github.com/readmeio/oas-normalize/issues/150)
35
- * chore(deps): bump actions/setup-node from 2.3.0 to 2.4.0 (#149) ([b43483c](https://github.com/readmeio/oas-normalize/commit/b43483c)), closes [#149](https://github.com/readmeio/oas-normalize/issues/149)
36
- * chore(deps): bump swagger-parser from 10.0.2 to 10.0.3 (#151) ([d046bbd](https://github.com/readmeio/oas-normalize/commit/d046bbd)), closes [#151](https://github.com/readmeio/oas-normalize/issues/151)
37
-
38
-
39
-
40
- ## <small>3.0.4 (2021-08-02)</small>
41
-
42
- * chore(deps): bump actions/setup-node from 2.2.0 to 2.3.0 (#147) ([7b66274](https://github.com/readmeio/oas-normalize/commit/7b66274)), closes [#147](https://github.com/readmeio/oas-normalize/issues/147)
43
- * chore(deps): bumping deps ([61c9c09](https://github.com/readmeio/oas-normalize/commit/61c9c09))
44
- * docs: some minor updates to the readme ([b75fe43](https://github.com/readmeio/oas-normalize/commit/b75fe43))
45
-
46
-
47
-
48
- ## <small>3.0.3 (2021-07-06)</small>
49
-
50
- * build(deps-dev): bump eslint from 7.25.0 to 7.29.0 (#139) ([cbc7d8e](https://github.com/readmeio/oas-normalize/commit/cbc7d8e)), closes [#139](https://github.com/readmeio/oas-normalize/issues/139)
51
- * build(deps-dev): bump jest from 27.0.4 to 27.0.6 (#140) ([e09a863](https://github.com/readmeio/oas-normalize/commit/e09a863)), closes [#140](https://github.com/readmeio/oas-normalize/issues/140)
52
- * build(deps-dev): bump prettier from 2.3.0 to 2.3.2 (#137) ([3b609f5](https://github.com/readmeio/oas-normalize/commit/3b609f5)), closes [#137](https://github.com/readmeio/oas-normalize/issues/137)
53
- * build(deps): bump @apidevtools/json-schema-ref-parser (#138) ([83d8bf4](https://github.com/readmeio/oas-normalize/commit/83d8bf4)), closes [#138](https://github.com/readmeio/oas-normalize/issues/138)
54
- * build(deps): bump js-yaml from 3.13.1 to 4.1.0 (#136) ([6d6c459](https://github.com/readmeio/oas-normalize/commit/6d6c459)), closes [#136](https://github.com/readmeio/oas-normalize/issues/136)
55
- * build(deps): bump swagger2openapi from 7.0.6 to 7.0.7 (#141) ([a8ad128](https://github.com/readmeio/oas-normalize/commit/a8ad128)), closes [#141](https://github.com/readmeio/oas-normalize/issues/141)
56
- * chore(deps): bump actions/setup-node from 2.1.5 to 2.2.0 (#142) ([78e0c25](https://github.com/readmeio/oas-normalize/commit/78e0c25)), closes [#142](https://github.com/readmeio/oas-normalize/issues/142)
57
-
58
-
59
-
60
- ## <small>3.0.2 (2021-06-09)</small>
61
-
62
- * fix: swapping out `yaml` for `js-yaml` because it can handle quirky indents ([fe66cfa](https://github.com/readmeio/oas-normalize/commit/fe66cfa))
63
-
64
-
65
-
66
- ## <small>3.0.1 (2021-06-07)</small>
67
-
68
- * fix: `validate` will now reject the promise on validation errors ([3a2a0da](https://github.com/readmeio/oas-normalize/commit/3a2a0da))
69
- * docs: fixing a typo in the readme ([f538aff](https://github.com/readmeio/oas-normalize/commit/f538aff))
70
-
71
-
72
-
73
- ## 3.0.0 (2021-06-03)
74
-
75
- > 🚨 &nbsp;**Breaking change!**
76
- >
77
- > `oas-normalize` has been fully rewritten to be promise-based, and no longer supports callbacks. If you have an existing implementation of this library you'll need to rewrite it to support `await`ing the promises returned.
78
-
79
- * chore(deps-dev): upgrading @readme/eslint-config from 3.1.0 to 5.1.0 ([af4874b](https://github.com/readmeio/oas-normalize/commit/af4874b)), ([e0e8d09](https://github.com/readmeio/oas-normalize/commit/e0e8d09)), ([c211bc9](https://github.com/readmeio/oas-normalize/commit/c211bc9)), ([ab29f15](https://github.com/readmeio/oas-normalize/commit/ab29f15)), ([5732ed1](https://github.com/readmeio/oas-normalize/commit/5732ed1)), ([3917699](https://github.com/readmeio/oas-normalize/commit/3917699)), ([1dcd5c7](https://github.com/readmeio/oas-normalize/commit/1dcd5c7))
80
- * chore(deps): bump actions/checkout from 1 to 2.3.4 (#133) ([49fd5ae](https://github.com/readmeio/oas-normalize/commit/49fd5ae)), closes [#133](https://github.com/readmeio/oas-normalize/issues/133)
81
- * chore(deps): bump actions/setup-node from 1 to 2.1.5 (#132) ([e1b3aa0](https://github.com/readmeio/oas-normalize/commit/e1b3aa0)), closes [#132](https://github.com/readmeio/oas-normalize/issues/132)
82
- * chore(deps): running `npm audit fix` ([184591b](https://github.com/readmeio/oas-normalize/commit/184591b))
83
- * build(deps-dev): bump eslint from 7.8.0 to 7.25.0 ([f674f21](https://github.com/readmeio/oas-normalize/commit/f674f21)), ([efeb5f6](https://github.com/readmeio/oas-normalize/commit/efeb5f6)), ([a0f80bd](https://github.com/readmeio/oas-normalize/commit/a0f80bd)), ([aed9be1](https://github.com/readmeio/oas-normalize/commit/aed9be1)), ([731cac8](https://github.com/readmeio/oas-normalize/commit/731cac8))
84
- * build(deps-dev): bump jest from 26.4.2 to 27.0.4 ([a58609e](https://github.com/readmeio/oas-normalize/commit/a58609e)), ([ec0404d](https://github.com/readmeio/oas-normalize/commit/ec0404d)), ([eb19bce](https://github.com/readmeio/oas-normalize/commit/eb19bce))
85
- * build(deps-dev): bump prettier from 2.1.1 to 2.3.0 ([8106028](https://github.com/readmeio/oas-normalize/commit/8106028)), ([044af3c](https://github.com/readmeio/oas-normalize/commit/044af3c)), ([798d229](https://github.com/readmeio/oas-normalize/commit/798d229))
86
- * build(deps): bump handlebars from 4.7.6 to 4.7.7 (#122) ([b9af22c](https://github.com/readmeio/oas-normalize/commit/b9af22c)), closes [#122](https://github.com/readmeio/oas-normalize/issues/122)
87
- * build(deps): bump hosted-git-info from 2.8.5 to 2.8.9 (#124) ([6fa9181](https://github.com/readmeio/oas-normalize/commit/6fa9181)), closes [#124](https://github.com/readmeio/oas-normalize/issues/124)
88
- * build(deps): bump lodash from 4.17.19 to 4.17.21 (#123) ([f65ac71](https://github.com/readmeio/oas-normalize/commit/f65ac71)), closes [#123](https://github.com/readmeio/oas-normalize/issues/123)
89
- * build(deps): bump node-notifier from 8.0.0 to 8.0.1 (#107) ([f1ea9ef](https://github.com/readmeio/oas-normalize/commit/f1ea9ef)), closes [#107](https://github.com/readmeio/oas-normalize/issues/107)
90
- * build(deps): bump swagger-parser from 10.0.1 to 10.0.2 (#92) ([db45a42](https://github.com/readmeio/oas-normalize/commit/db45a42)), closes [#92](https://github.com/readmeio/oas-normalize/issues/92)
91
- * build(deps): bump ws from 7.4.0 to 7.4.6 (#125) ([e884b1d](https://github.com/readmeio/oas-normalize/commit/e884b1d)), closes [#125](https://github.com/readmeio/oas-normalize/issues/125)
92
- * feat: promises rewrite and drop support for node 10 (#131) ([5f1f5f5](https://github.com/readmeio/oas-normalize/commit/5f1f5f5)), closes [#131](https://github.com/readmeio/oas-normalize/issues/131)
93
-
94
-
95
-
96
- ## <small>2.3.1 (2020-09-11)</small>
97
-
98
- * build(deps-dev): bump @readme/eslint-config from 3.4.0 to 3.4.2 (#86) ([6615b5b](https://github.com/readmeio/oas-normalize/commit/6615b5b)), closes [#86](https://github.com/readmeio/oas-normalize/issues/86)
99
- * build(deps-dev): bump conventional-changelog-cli from 2.0.34 to 2.1.0 (#83) ([6b5afbb](https://github.com/readmeio/oas-normalize/commit/6b5afbb)), closes [#83](https://github.com/readmeio/oas-normalize/issues/83)
100
- * build(deps-dev): bump eslint from 7.6.0 to 7.8.0 (#88) ([9e03439](https://github.com/readmeio/oas-normalize/commit/9e03439)), closes [#88](https://github.com/readmeio/oas-normalize/issues/88)
101
- * build(deps-dev): bump jest from 26.2.2 to 26.4.2 (#85) ([ad371bf](https://github.com/readmeio/oas-normalize/commit/ad371bf)), closes [#85](https://github.com/readmeio/oas-normalize/issues/85)
102
- * build(deps-dev): bump prettier from 2.0.5 to 2.1.1 (#84) ([ce88131](https://github.com/readmeio/oas-normalize/commit/ce88131)), closes [#84](https://github.com/readmeio/oas-normalize/issues/84)
103
- * build(deps): bump node-fetch from 2.1.2 to 2.6.1 (#89) ([8e05e60](https://github.com/readmeio/oas-normalize/commit/8e05e60)), closes [#89](https://github.com/readmeio/oas-normalize/issues/89)
104
-
105
-
106
-
107
- ## 2.3.0 (2020-08-03)
108
-
109
- * build(deps-dev): bump @readme/eslint-config from 3.3.2 to 3.4.0 (#81) ([e36adc6](https://github.com/readmeio/oas-normalize/commit/e36adc6)), closes [#81](https://github.com/readmeio/oas-normalize/issues/81)
110
- * build(deps-dev): bump eslint from 7.3.1 to 7.6.0 (#77) ([90c9908](https://github.com/readmeio/oas-normalize/commit/90c9908)), closes [#77](https://github.com/readmeio/oas-normalize/issues/77)
111
- * build(deps-dev): bump jest from 26.1.0 to 26.2.2 (#79) ([a63e73c](https://github.com/readmeio/oas-normalize/commit/a63e73c)), closes [#79](https://github.com/readmeio/oas-normalize/issues/79)
112
- * build(deps): bump @apidevtools/json-schema-ref-parser (#78) ([b9832ab](https://github.com/readmeio/oas-normalize/commit/b9832ab)), closes [#78](https://github.com/readmeio/oas-normalize/issues/78)
113
- * build(deps): bump swagger-parser from 9.0.1 to 10.0.1 (#82) ([9f821a3](https://github.com/readmeio/oas-normalize/commit/9f821a3)), closes [#82](https://github.com/readmeio/oas-normalize/issues/82)
114
-
115
-
116
-
117
- ## <small>2.2.2 (2020-07-20)</small>
118
-
119
- * build(deps-dev): bump @readme/eslint-config from 3.1.0 to 3.1.3 (#68) ([3cce9b6](https://github.com/readmeio/oas-normalize/commit/3cce9b6)), closes [#68](https://github.com/readmeio/oas-normalize/issues/68)
120
- * build(deps-dev): bump @readme/eslint-config from 3.1.3 to 3.2.0 (#70) ([d9f5e5a](https://github.com/readmeio/oas-normalize/commit/d9f5e5a)), closes [#70](https://github.com/readmeio/oas-normalize/issues/70)
121
- * build(deps-dev): bump @readme/eslint-config from 3.2.0 to 3.2.1 (#72) ([352dfd5](https://github.com/readmeio/oas-normalize/commit/352dfd5)), closes [#72](https://github.com/readmeio/oas-normalize/issues/72)
122
- * build(deps-dev): bump @readme/eslint-config from 3.2.1 to 3.3.2 (#74) ([205a8e4](https://github.com/readmeio/oas-normalize/commit/205a8e4)), closes [#74](https://github.com/readmeio/oas-normalize/issues/74)
123
- * build(deps-dev): bump eslint from 7.1.0 to 7.2.0 (#69) ([b2030e9](https://github.com/readmeio/oas-normalize/commit/b2030e9)), closes [#69](https://github.com/readmeio/oas-normalize/issues/69)
124
- * build(deps-dev): bump eslint from 7.2.0 to 7.3.1 (#73) ([25c9a35](https://github.com/readmeio/oas-normalize/commit/25c9a35)), closes [#73](https://github.com/readmeio/oas-normalize/issues/73)
125
- * build(deps-dev): bump jest from 26.0.1 to 26.1.0 (#75) ([951cce6](https://github.com/readmeio/oas-normalize/commit/951cce6)), closes [#75](https://github.com/readmeio/oas-normalize/issues/75)
126
- * build(deps): bump lodash from 4.17.15 to 4.17.19 (#76) ([4afbc32](https://github.com/readmeio/oas-normalize/commit/4afbc32)), closes [#76](https://github.com/readmeio/oas-normalize/issues/76)
127
- * ci: create Dependabot config file (#65) ([40b5a3a](https://github.com/readmeio/oas-normalize/commit/40b5a3a)), closes [#65](https://github.com/readmeio/oas-normalize/issues/65)
128
- * ci: run tests against node 14 (#66) ([e1de3da](https://github.com/readmeio/oas-normalize/commit/e1de3da)), closes [#66](https://github.com/readmeio/oas-normalize/issues/66)
129
- * ci: upping the frequency of dependabot to monthly ([469d2ec](https://github.com/readmeio/oas-normalize/commit/469d2ec))
130
-
131
-
132
-
133
- ## <small>2.2.1 (2020-06-03)</small>
134
-
135
- * chore(deps): [Security] Bump minimist from 1.2.0 to 1.2.5 (#64) ([784ba61](https://github.com/readmeio/oas-normalize/commit/784ba61)), closes [#64](https://github.com/readmeio/oas-normalize/issues/64)
136
-
137
-
138
-
139
- ## 2.2.0 (2020-05-28)
140
-
141
- * chore(deps-dev): Bump @readme/eslint-config from 2.0.4 to 2.0.6 (#60) ([103f1c3](https://github.com/readmeio/oas-normalize/commit/103f1c3)), closes [#60](https://github.com/readmeio/oas-normalize/issues/60)
142
- * chore(deps-dev): Bump @readme/eslint-config from 2.0.6 to 2.2.0 (#63) ([4a9c96c](https://github.com/readmeio/oas-normalize/commit/4a9c96c)), closes [#63](https://github.com/readmeio/oas-normalize/issues/63)
143
- * chore(deps-dev): Bump conventional-changelog-cli from 2.0.31 to 2.0.34 (#62) ([301148c](https://github.com/readmeio/oas-normalize/commit/301148c)), closes [#62](https://github.com/readmeio/oas-normalize/issues/62)
144
- * chore(deps-dev): Bump jest from 25.4.0 to 25.5.4 (#59) ([95c46e7](https://github.com/readmeio/oas-normalize/commit/95c46e7)), closes [#59](https://github.com/readmeio/oas-normalize/issues/59)
145
- * chore(deps-dev): Bump jest from 25.5.4 to 26.0.1 (#61) ([2a8de9a](https://github.com/readmeio/oas-normalize/commit/2a8de9a)), closes [#61](https://github.com/readmeio/oas-normalize/issues/61)
146
- * chore(deps-dev): upgrading our eslint deps to their latest release ([b2c477c](https://github.com/readmeio/oas-normalize/commit/b2c477c))
147
- * chore(deps): swapping `yamljs` for `yaml` ([03e4163](https://github.com/readmeio/oas-normalize/commit/03e4163))
148
- * chore(deps): upgrading json-schema-ref-parser to the latest release ([8a0ed5b](https://github.com/readmeio/oas-normalize/commit/8a0ed5b))
149
-
150
-
151
-
152
- ## 2.1.0 (2020-04-27)
153
-
154
- * chore(deps-dev): Bump @readme/eslint-config from 1.15.0 to 2.0.0 (#42) ([533fb78](https://github.com/readmeio/oas-normalize/commit/533fb78)), closes [#42](https://github.com/readmeio/oas-normalize/issues/42)
155
- * chore(deps-dev): Bump @readme/eslint-config from 2.0.0 to 2.0.2 (#46) ([c16aa49](https://github.com/readmeio/oas-normalize/commit/c16aa49)), closes [#46](https://github.com/readmeio/oas-normalize/issues/46)
156
- * chore(deps-dev): Bump @readme/eslint-config from 2.0.2 to 2.0.3 (#51) ([447214f](https://github.com/readmeio/oas-normalize/commit/447214f)), closes [#51](https://github.com/readmeio/oas-normalize/issues/51)
157
- * chore(deps-dev): Bump @readme/eslint-config from 2.0.3 to 2.0.4 (#56) ([e644a3d](https://github.com/readmeio/oas-normalize/commit/e644a3d)), closes [#56](https://github.com/readmeio/oas-normalize/issues/56)
158
- * chore(deps-dev): Bump jest from 25.1.0 to 25.2.4 (#45) ([956a379](https://github.com/readmeio/oas-normalize/commit/956a379)), closes [#45](https://github.com/readmeio/oas-normalize/issues/45)
159
- * chore(deps-dev): Bump jest from 25.2.4 to 25.2.7 (#49) ([b2fb35f](https://github.com/readmeio/oas-normalize/commit/b2fb35f)), closes [#49](https://github.com/readmeio/oas-normalize/issues/49)
160
- * chore(deps-dev): Bump jest from 25.2.7 to 25.3.0 (#53) ([0beb774](https://github.com/readmeio/oas-normalize/commit/0beb774)), closes [#53](https://github.com/readmeio/oas-normalize/issues/53)
161
- * chore(deps-dev): Bump jest from 25.3.0 to 25.4.0 (#54) ([e61c714](https://github.com/readmeio/oas-normalize/commit/e61c714)), closes [#54](https://github.com/readmeio/oas-normalize/issues/54)
162
- * chore(deps-dev): Bump prettier from 2.0.1 to 2.0.2 (#44) ([46a248a](https://github.com/readmeio/oas-normalize/commit/46a248a)), closes [#44](https://github.com/readmeio/oas-normalize/issues/44)
163
- * chore(deps-dev): Bump prettier from 2.0.2 to 2.0.3 (#48) ([87cf0ca](https://github.com/readmeio/oas-normalize/commit/87cf0ca)), closes [#48](https://github.com/readmeio/oas-normalize/issues/48)
164
- * chore(deps-dev): Bump prettier from 2.0.3 to 2.0.4 (#52) ([e7c0585](https://github.com/readmeio/oas-normalize/commit/e7c0585)), closes [#52](https://github.com/readmeio/oas-normalize/issues/52)
165
- * chore(deps-dev): Bump prettier from 2.0.4 to 2.0.5 (#58) ([b5f0a9e](https://github.com/readmeio/oas-normalize/commit/b5f0a9e)), closes [#58](https://github.com/readmeio/oas-normalize/issues/58)
166
- * chore(deps): Bump json-schema-ref-parser from 8.0.0 to 9.0.1 (#57) ([3f52981](https://github.com/readmeio/oas-normalize/commit/3f52981)), closes [#57](https://github.com/readmeio/oas-normalize/issues/57)
167
-
168
-
169
-
170
- ## <small>2.0.2 (2020-03-16)</small>
171
-
172
- * chore: adding .github/ and coverage/ into npmignore ([c71f9c3](https://github.com/readmeio/oas-normalize/commit/c71f9c3))
173
-
174
-
175
-
176
- ## <small>2.0.1 (2020-03-16)</small>
177
-
178
- * chore(deps-dev): Bump @readme/eslint-config from 1.13.0 to 1.14.0 (#35) ([aa9cb49](https://github.com/readmeio/oas-normalize/commit/aa9cb49)), closes [#35](https://github.com/readmeio/oas-normalize/issues/35)
179
- * chore(deps-dev): Bump @readme/eslint-config from 1.14.0 to 1.15.0 (#39) ([e4573ee](https://github.com/readmeio/oas-normalize/commit/e4573ee)), closes [#39](https://github.com/readmeio/oas-normalize/issues/39)
180
- * chore(deps): [Security] Bump acorn from 6.4.0 to 6.4.1 (#38) ([a883229](https://github.com/readmeio/oas-normalize/commit/a883229)), closes [#38](https://github.com/readmeio/oas-normalize/issues/38)
181
- * chore(deps): Bump json-schema-ref-parser from 7.1.3 to 8.0.0 (#40) ([07cf44f](https://github.com/readmeio/oas-normalize/commit/07cf44f)), closes [#40](https://github.com/readmeio/oas-normalize/issues/40)
182
- * chore(deps): Bump swagger-parser from 8.0.4 to 9.0.1 (#41) ([34e4d95](https://github.com/readmeio/oas-normalize/commit/34e4d95)), closes [#41](https://github.com/readmeio/oas-normalize/issues/41)
183
- * style: run eslint before running prettier ([b6523a0](https://github.com/readmeio/oas-normalize/commit/b6523a0))
184
-
185
-
186
-
187
- ## 2.0.0 (2020-02-24)
188
-
189
- * chore(deps-dev): Bump @readme/eslint-config from 1.10.0 to 1.11.0 (#30) ([df0d87e](https://github.com/readmeio/oas-normalize/commit/df0d87e)), closes [#30](https://github.com/readmeio/oas-normalize/issues/30)
190
- * chore(deps-dev): Bump @readme/eslint-config from 1.11.0 to 1.12.0 (#31) ([1063157](https://github.com/readmeio/oas-normalize/commit/1063157)), closes [#31](https://github.com/readmeio/oas-normalize/issues/31)
191
- * chore(deps-dev): Bump @readme/eslint-config from 1.12.0 to 1.13.0 (#34) ([7b08207](https://github.com/readmeio/oas-normalize/commit/7b08207)), closes [#34](https://github.com/readmeio/oas-normalize/issues/34)
192
- * chore(deps-dev): Bump @readme/eslint-config from 1.9.0 to 1.9.1 (#26) ([70aa3d4](https://github.com/readmeio/oas-normalize/commit/70aa3d4)), closes [#26](https://github.com/readmeio/oas-normalize/issues/26)
193
- * chore(deps-dev): Bump @readme/eslint-config from 1.9.1 to 1.10.0 (#28) ([612f72b](https://github.com/readmeio/oas-normalize/commit/612f72b)), closes [#28](https://github.com/readmeio/oas-normalize/issues/28)
194
- * chore(deps-dev): Bump jest from 24.9.0 to 25.1.0 (#29) ([9fa5c1c](https://github.com/readmeio/oas-normalize/commit/9fa5c1c)), closes [#29](https://github.com/readmeio/oas-normalize/issues/29)
195
- * feat: dropping support for node 8 (#33) ([a49dffc](https://github.com/readmeio/oas-normalize/commit/a49dffc)), closes [#33](https://github.com/readmeio/oas-normalize/issues/33)
196
-
197
-
198
-
199
- ## 1.0.0 (2020-01-06)
200
-
201
- * build: 1.0.0 release ([fb3187e](https://github.com/readmeio/oas-normalize/commit/fb3187e))
202
- * security: upgrading mem and js-yaml (#25) ([8166e2c](https://github.com/readmeio/oas-normalize/commit/8166e2c)), closes [#25](https://github.com/readmeio/oas-normalize/issues/25)
203
- * chore(deps-dev): Bump @readme/eslint-config from 1.8.1 to 1.9.0 (#23) ([960cfeb](https://github.com/readmeio/oas-normalize/commit/960cfeb)), closes [#23](https://github.com/readmeio/oas-normalize/issues/23)
204
- * chore(deps): Bump json-schema-ref-parser from 5.0.3 to 7.1.3 (#24) ([eff7626](https://github.com/readmeio/oas-normalize/commit/eff7626)), closes [#24](https://github.com/readmeio/oas-normalize/issues/24)
205
- * chore(deps): Bump swagger-parser from 8.0.3 to 8.0.4 (#22) ([0b9bc84](https://github.com/readmeio/oas-normalize/commit/0b9bc84)), closes [#22](https://github.com/readmeio/oas-normalize/issues/22)
206
-
207
-
208
-
209
- ## <small>0.1.1 (2019-12-30)</small>
210
-
211
- * build: 0.1.1 release ([b08c51b](https://github.com/readmeio/oas-normalize/commit/b08c51b))
212
- * chore: Bump @readme/eslint-config from 1.5.1 to 1.6.1 (#16) ([4e1bf0b](https://github.com/readmeio/oas-normalize/commit/4e1bf0b)), closes [#16](https://github.com/readmeio/oas-normalize/issues/16)
213
- * chore: Bump @readme/eslint-config from 1.6.1 to 1.7.0 (#17) ([e5b85bd](https://github.com/readmeio/oas-normalize/commit/e5b85bd)), closes [#17](https://github.com/readmeio/oas-normalize/issues/17)
214
- * chore: Bump @readme/eslint-config from 1.7.0 to 1.8.0 (#18) ([3d9bb73](https://github.com/readmeio/oas-normalize/commit/3d9bb73)), closes [#18](https://github.com/readmeio/oas-normalize/issues/18)
215
- * chore: Bump eslint from 6.7.1 to 6.7.2 (#14) ([9886994](https://github.com/readmeio/oas-normalize/commit/9886994)), closes [#14](https://github.com/readmeio/oas-normalize/issues/14)
216
- * chore: Bump eslint-plugin-jest from 23.0.4 to 23.1.1 (#15) ([a19582b](https://github.com/readmeio/oas-normalize/commit/a19582b)), closes [#15](https://github.com/readmeio/oas-normalize/issues/15)
217
- * chore(deps-dev): [Security] Bump handlebars from 4.2.0 to 4.5.3 (#21) ([f2fc972](https://github.com/readmeio/oas-normalize/commit/f2fc972)), closes [#21](https://github.com/readmeio/oas-normalize/issues/21)
218
- * chore(dev-deps): Bump @readme/eslint-config from 1.8.0 to 1.8.1 (#19) ([6245ad7](https://github.com/readmeio/oas-normalize/commit/6245ad7)), closes [#19](https://github.com/readmeio/oas-normalize/issues/19)
219
- * chore(dev-deps): Bump eslint from 6.7.2 to 6.8.0 (#20) ([21823ab](https://github.com/readmeio/oas-normalize/commit/21823ab)), closes [#20](https://github.com/readmeio/oas-normalize/issues/20)
220
-
221
-
222
-
223
- ## 0.1.0 (2019-11-25)
224
-
225
- * chore: Adopting @readme/eslint-config (#13) ([5593e2d](https://github.com/readmeio/oas-normalize/commit/5593e2d)), closes [#13](https://github.com/readmeio/oas-normalize/issues/13)
226
- * chore: Bump eslint from 6.5.1 to 6.7.1 (#12) ([b449c46](https://github.com/readmeio/oas-normalize/commit/b449c46)), closes [#12](https://github.com/readmeio/oas-normalize/issues/12)
227
- * chore: Bump swagger-parser from 8.0.2 to 8.0.3 (#10) ([65ec609](https://github.com/readmeio/oas-normalize/commit/65ec609)), closes [#10](https://github.com/readmeio/oas-normalize/issues/10)
228
- * chore: release 0.1.0 ([d503b6d](https://github.com/readmeio/oas-normalize/commit/d503b6d))
229
- * feat: github action for running ci tests ([27682ca](https://github.com/readmeio/oas-normalize/commit/27682ca))
230
-
231
-
232
-
233
- ## <small>0.0.6 (2019-10-14)</small>
234
-
235
- * 0.0.6 ([41a685d](https://github.com/readmeio/oas-normalize/commit/41a685d))
236
- * Bump eslint from 6.5.0 to 6.5.1 (#7) ([5bbd15a](https://github.com/readmeio/oas-normalize/commit/5bbd15a)), closes [#7](https://github.com/readmeio/oas-normalize/issues/7)
237
- * deps: Bump swagger-parser from 4.1.0 to 8.0.2 (#8) ([d2c11ec](https://github.com/readmeio/oas-normalize/commit/d2c11ec)), closes [#8](https://github.com/readmeio/oas-normalize/issues/8)
238
-
239
-
240
-
241
- ## <small>0.0.5 (2019-09-30)</small>
242
-
243
- * 0.0.5 ([d1312c1](https://github.com/readmeio/oas-normalize/commit/d1312c1))
244
- * Bump eslint from 6.4.0 to 6.5.0 (#6) ([4fa1b19](https://github.com/readmeio/oas-normalize/commit/4fa1b19)), closes [#6](https://github.com/readmeio/oas-normalize/issues/6)
245
- * feat: Adding unit tests (#5) ([95adcaa](https://github.com/readmeio/oas-normalize/commit/95adcaa)), closes [#5](https://github.com/readmeio/oas-normalize/issues/5)
246
-
247
-
248
-
249
- ## <small>0.0.4 (2019-09-13)</small>
250
-
251
- * 0.0.4 ([126138c](https://github.com/readmeio/oas-normalize/commit/126138c))
252
- * bump ([1fafc72](https://github.com/readmeio/oas-normalize/commit/1fafc72))
253
- * Initial commit ([14db2d9](https://github.com/readmeio/oas-normalize/commit/14db2d9))
254
- * Licensing under MIT and adding Github details to the package file. ([30dff9b](https://github.com/readmeio/oas-normalize/commit/30dff9b))
255
- * Remove speccy ([1bc97d5](https://github.com/readmeio/oas-normalize/commit/1bc97d5))
256
- * Update ReadMe ([41c8ac3](https://github.com/readmeio/oas-normalize/commit/41c8ac3))
257
- * Update readme file ([0f64d3e](https://github.com/readmeio/oas-normalize/commit/0f64d3e))
258
- * Use real URL ([cd1e627](https://github.com/readmeio/oas-normalize/commit/cd1e627))
259
-
260
-
261
-