oas-normalize 4.0.2 → 5.0.2

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.
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [support+coc@readme.io](mailto:support+coc@readme.io).
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
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.2",
4
- "description": "OpenAPI 3 or Swagger 2? YAML or JSON? URL, path, string or object? Who cares! It just works.",
3
+ "version": "5.0.2",
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,252 +0,0 @@
1
- ## <small>4.0.1 (2021-09-01)</small>
2
-
3
- * 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)
4
- * 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)
5
- * chore(deps-dev): removing conventional-changelog-cli in favor of npx ([7c28a12](https://github.com/readmeio/oas-normalize/commit/7c28a12))
6
- * ci: ignoring node-fetch after v3 because its now an esm package ([3ea35aa](https://github.com/readmeio/oas-normalize/commit/3ea35aa))
7
-
8
-
9
-
10
- ## 4.0.0 (2021-08-26)
11
-
12
- > 🚨 &nbsp;**Breaking change!**
13
- >
14
- > `.validate()` will no longer dereference schemas. If you need to dereference before or after validating, you shoudl use the `.deref()` method instead.
15
-
16
- * 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)
17
- * docs: adding a pull request template ([16da316](https://github.com/readmeio/oas-normalize/commit/16da316))
18
- * 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)
19
-
20
-
21
-
22
- ## <small>3.0.5 (2021-08-20)</small>
23
-
24
- * chore: running npm audit ([6dc30cf](https://github.com/readmeio/oas-normalize/commit/6dc30cf))
25
- * 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)
26
- * 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)
27
- * 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)
28
-
29
-
30
-
31
- ## <small>3.0.4 (2021-08-02)</small>
32
-
33
- * 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)
34
- * chore(deps): bumping deps ([61c9c09](https://github.com/readmeio/oas-normalize/commit/61c9c09))
35
- * docs: some minor updates to the readme ([b75fe43](https://github.com/readmeio/oas-normalize/commit/b75fe43))
36
-
37
-
38
-
39
- ## <small>3.0.3 (2021-07-06)</small>
40
-
41
- * 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)
42
- * 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)
43
- * 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)
44
- * 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)
45
- * 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)
46
- * 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)
47
- * 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)
48
-
49
-
50
-
51
- ## <small>3.0.2 (2021-06-09)</small>
52
-
53
- * fix: swapping out `yaml` for `js-yaml` because it can handle quirky indents ([fe66cfa](https://github.com/readmeio/oas-normalize/commit/fe66cfa))
54
-
55
-
56
-
57
- ## <small>3.0.1 (2021-06-07)</small>
58
-
59
- * fix: `validate` will now reject the promise on validation errors ([3a2a0da](https://github.com/readmeio/oas-normalize/commit/3a2a0da))
60
- * docs: fixing a typo in the readme ([f538aff](https://github.com/readmeio/oas-normalize/commit/f538aff))
61
-
62
-
63
-
64
- ## 3.0.0 (2021-06-03)
65
-
66
- > 🚨 &nbsp;**Breaking change!**
67
- >
68
- > `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.
69
-
70
- * 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))
71
- * 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)
72
- * 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)
73
- * chore(deps): running `npm audit fix` ([184591b](https://github.com/readmeio/oas-normalize/commit/184591b))
74
- * 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))
75
- * 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))
76
- * 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))
77
- * 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)
78
- * 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)
79
- * 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)
80
- * 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)
81
- * 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)
82
- * 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)
83
- * 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)
84
-
85
-
86
-
87
- ## <small>2.3.1 (2020-09-11)</small>
88
-
89
- * 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)
90
- * 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)
91
- * 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)
92
- * 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)
93
- * 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)
94
- * 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)
95
-
96
-
97
-
98
- ## 2.3.0 (2020-08-03)
99
-
100
- * 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)
101
- * 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)
102
- * 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)
103
- * 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)
104
- * 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)
105
-
106
-
107
-
108
- ## <small>2.2.2 (2020-07-20)</small>
109
-
110
- * 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)
111
- * 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)
112
- * 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)
113
- * 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)
114
- * 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)
115
- * 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)
116
- * 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)
117
- * 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)
118
- * 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)
119
- * 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)
120
- * ci: upping the frequency of dependabot to monthly ([469d2ec](https://github.com/readmeio/oas-normalize/commit/469d2ec))
121
-
122
-
123
-
124
- ## <small>2.2.1 (2020-06-03)</small>
125
-
126
- * 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)
127
-
128
-
129
-
130
- ## 2.2.0 (2020-05-28)
131
-
132
- * 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)
133
- * 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)
134
- * 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)
135
- * 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)
136
- * 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)
137
- * chore(deps-dev): upgrading our eslint deps to their latest release ([b2c477c](https://github.com/readmeio/oas-normalize/commit/b2c477c))
138
- * chore(deps): swapping `yamljs` for `yaml` ([03e4163](https://github.com/readmeio/oas-normalize/commit/03e4163))
139
- * chore(deps): upgrading json-schema-ref-parser to the latest release ([8a0ed5b](https://github.com/readmeio/oas-normalize/commit/8a0ed5b))
140
-
141
-
142
-
143
- ## 2.1.0 (2020-04-27)
144
-
145
- * 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)
146
- * 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)
147
- * 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)
148
- * 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)
149
- * 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)
150
- * 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)
151
- * 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)
152
- * 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)
153
- * 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)
154
- * 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)
155
- * 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)
156
- * 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)
157
- * 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)
158
-
159
-
160
-
161
- ## <small>2.0.2 (2020-03-16)</small>
162
-
163
- * chore: adding .github/ and coverage/ into npmignore ([c71f9c3](https://github.com/readmeio/oas-normalize/commit/c71f9c3))
164
-
165
-
166
-
167
- ## <small>2.0.1 (2020-03-16)</small>
168
-
169
- * 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)
170
- * 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)
171
- * 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)
172
- * 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)
173
- * 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)
174
- * style: run eslint before running prettier ([b6523a0](https://github.com/readmeio/oas-normalize/commit/b6523a0))
175
-
176
-
177
-
178
- ## 2.0.0 (2020-02-24)
179
-
180
- * 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)
181
- * 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)
182
- * 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)
183
- * 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)
184
- * 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)
185
- * 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)
186
- * 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)
187
-
188
-
189
-
190
- ## 1.0.0 (2020-01-06)
191
-
192
- * build: 1.0.0 release ([fb3187e](https://github.com/readmeio/oas-normalize/commit/fb3187e))
193
- * 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)
194
- * 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)
195
- * 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)
196
- * 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)
197
-
198
-
199
-
200
- ## <small>0.1.1 (2019-12-30)</small>
201
-
202
- * build: 0.1.1 release ([b08c51b](https://github.com/readmeio/oas-normalize/commit/b08c51b))
203
- * 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)
204
- * 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)
205
- * 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)
206
- * 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)
207
- * 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)
208
- * 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)
209
- * 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)
210
- * 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)
211
-
212
-
213
-
214
- ## 0.1.0 (2019-11-25)
215
-
216
- * 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)
217
- * 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)
218
- * 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)
219
- * chore: release 0.1.0 ([d503b6d](https://github.com/readmeio/oas-normalize/commit/d503b6d))
220
- * feat: github action for running ci tests ([27682ca](https://github.com/readmeio/oas-normalize/commit/27682ca))
221
-
222
-
223
-
224
- ## <small>0.0.6 (2019-10-14)</small>
225
-
226
- * 0.0.6 ([41a685d](https://github.com/readmeio/oas-normalize/commit/41a685d))
227
- * 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)
228
- * 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)
229
-
230
-
231
-
232
- ## <small>0.0.5 (2019-09-30)</small>
233
-
234
- * 0.0.5 ([d1312c1](https://github.com/readmeio/oas-normalize/commit/d1312c1))
235
- * 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)
236
- * feat: Adding unit tests (#5) ([95adcaa](https://github.com/readmeio/oas-normalize/commit/95adcaa)), closes [#5](https://github.com/readmeio/oas-normalize/issues/5)
237
-
238
-
239
-
240
- ## <small>0.0.4 (2019-09-13)</small>
241
-
242
- * 0.0.4 ([126138c](https://github.com/readmeio/oas-normalize/commit/126138c))
243
- * bump ([1fafc72](https://github.com/readmeio/oas-normalize/commit/1fafc72))
244
- * Initial commit ([14db2d9](https://github.com/readmeio/oas-normalize/commit/14db2d9))
245
- * Licensing under MIT and adding Github details to the package file. ([30dff9b](https://github.com/readmeio/oas-normalize/commit/30dff9b))
246
- * Remove speccy ([1bc97d5](https://github.com/readmeio/oas-normalize/commit/1bc97d5))
247
- * Update ReadMe ([41c8ac3](https://github.com/readmeio/oas-normalize/commit/41c8ac3))
248
- * Update readme file ([0f64d3e](https://github.com/readmeio/oas-normalize/commit/0f64d3e))
249
- * Use real URL ([cd1e627](https://github.com/readmeio/oas-normalize/commit/cd1e627))
250
-
251
-
252
-