oas-toolkit 0.1.0
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.
- package/.github/workflows/ci.yml +22 -0
- package/.github/workflows/release.yml +39 -0
- package/LICENSE +21 -0
- package/README.md +36 -0
- package/cli/bin.js +12 -0
- package/cli/commands/merge.js +24 -0
- package/merger.js +99 -0
- package/merger.test.js +219 -0
- package/package.json +26 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
|
|
9
|
+
strategy:
|
|
10
|
+
matrix:
|
|
11
|
+
node-version: [16.x, 18.x, 20.x]
|
|
12
|
+
|
|
13
|
+
env:
|
|
14
|
+
CI: true
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v3
|
|
17
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
18
|
+
uses: actions/setup-node@v3
|
|
19
|
+
with:
|
|
20
|
+
node-version: ${{ matrix.node-version }}
|
|
21
|
+
- run: npm ci
|
|
22
|
+
- run: npm test
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: NPM Publish
|
|
2
|
+
|
|
3
|
+
permissions:
|
|
4
|
+
contents: write
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
release:
|
|
8
|
+
types: [published]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
with:
|
|
16
|
+
ref: ${{ github.event.release.target_commitish }}
|
|
17
|
+
- name: Use Node.js 18
|
|
18
|
+
uses: actions/setup-node@v3
|
|
19
|
+
with:
|
|
20
|
+
node-version: 18
|
|
21
|
+
registry-url: https://registry.npmjs.org/
|
|
22
|
+
- run: npm ci
|
|
23
|
+
- run: git config --global user.name "Michael Heap"
|
|
24
|
+
- run: git config --global user.email "m@michaelheap.com"
|
|
25
|
+
- run: npm version ${{ github.event.release.tag_name }}
|
|
26
|
+
- run: npm run build --if-present
|
|
27
|
+
- run: npm test --if-present
|
|
28
|
+
- run: npm publish
|
|
29
|
+
env:
|
|
30
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
31
|
+
- run: git push
|
|
32
|
+
env:
|
|
33
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
34
|
+
- run: git tag -f ${{ github.event.release.tag_name }} ${{ github.event.release.target_commitish }}
|
|
35
|
+
env:
|
|
36
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
37
|
+
- run: git push origin ${{ github.event.release.tag_name }} --force
|
|
38
|
+
env:
|
|
39
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License Copyright (c) 2023 Michael Heap
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free
|
|
4
|
+
of charge, to any person obtaining a copy of this software and associated
|
|
5
|
+
documentation files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use, copy, modify, merge,
|
|
7
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice
|
|
12
|
+
(including the next paragraph) shall be included in all copies or substantial
|
|
13
|
+
portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
16
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
18
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
19
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
20
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
## oas-toolkit
|
|
2
|
+
|
|
3
|
+
`oas-toolkit` is a library and CLI for working with OpenAPI documents.
|
|
4
|
+
|
|
5
|
+
> The CLI only supports YAML OpenAPI specifications currently
|
|
6
|
+
|
|
7
|
+
The project provides the following functionality:
|
|
8
|
+
|
|
9
|
+
- Merge multiple OAS documents into a single file
|
|
10
|
+
- Add/patch values in place
|
|
11
|
+
- Remove arbritary keys from the specification
|
|
12
|
+
- Remove unused components
|
|
13
|
+
|
|
14
|
+
## Merge
|
|
15
|
+
|
|
16
|
+
Usage:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
oas-toolkit merge <one> <two> <three> > openapi.yml
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Combining multiple OpenAPI specs has unspecified behaviour. This tool merges using the following algorithm:
|
|
23
|
+
|
|
24
|
+
Take the latest specified value for the following blocks:
|
|
25
|
+
|
|
26
|
+
- openapi
|
|
27
|
+
- info
|
|
28
|
+
- servers
|
|
29
|
+
- externalDocs
|
|
30
|
+
|
|
31
|
+
Merge the following lists/objects recursively. If you encounter a list, concatenate them together:
|
|
32
|
+
|
|
33
|
+
- security
|
|
34
|
+
- tags
|
|
35
|
+
- components
|
|
36
|
+
- paths
|
package/cli/bin.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const yargs = require("yargs/yargs");
|
|
4
|
+
const { hideBin } = require("yargs/helpers");
|
|
5
|
+
|
|
6
|
+
yargs(hideBin(process.argv))
|
|
7
|
+
.command(
|
|
8
|
+
"merge <openapi.yaml> <...more.yaml>",
|
|
9
|
+
"merge the provided OpenAPI files",
|
|
10
|
+
require("./commands/merge")
|
|
11
|
+
)
|
|
12
|
+
.parse();
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const yaml = require("js-yaml");
|
|
3
|
+
|
|
4
|
+
module.exports = function ({ argv }) {
|
|
5
|
+
try {
|
|
6
|
+
const oasFiles = argv._.slice(1);
|
|
7
|
+
if (oasFiles.length < 2) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const merger = require("../../merger");
|
|
12
|
+
|
|
13
|
+
const oas = [];
|
|
14
|
+
for (let f of oasFiles) {
|
|
15
|
+
oas.push(yaml.load(fs.readFileSync(f)));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const combined = merger.apply(null, oas);
|
|
19
|
+
console.log(yaml.dump(combined));
|
|
20
|
+
} catch (e) {
|
|
21
|
+
console.error(`ERROR: ${e.message}`);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
};
|
package/merger.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
const mergician = require("mergician");
|
|
2
|
+
|
|
3
|
+
function merge(...objects) {
|
|
4
|
+
ensureNoComponentColissions(objects);
|
|
5
|
+
ensureNoPathColissions(objects);
|
|
6
|
+
|
|
7
|
+
// Do the merge
|
|
8
|
+
let combinedSpec = {};
|
|
9
|
+
|
|
10
|
+
// Values that should be overwritten
|
|
11
|
+
const overwriteMerge = mergician({ dedupArrays: true });
|
|
12
|
+
const overwriteSections = ["openapi", "info", "servers", "externalDocs"];
|
|
13
|
+
for (let section of overwriteSections) {
|
|
14
|
+
combinedSpec = mergeSection(combinedSpec, overwriteMerge, objects, section);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Values that should be appended
|
|
18
|
+
const appendMerge = mergician({ appendArrays: true, dedupArrays: true });
|
|
19
|
+
const appendSections = ["paths", "components", "security", "tags"];
|
|
20
|
+
for (let section of appendSections) {
|
|
21
|
+
combinedSpec = mergeSection(combinedSpec, appendMerge, objects, section);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return combinedSpec;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function mergeSection(spec, merger, objects, section) {
|
|
28
|
+
return Object.assign(
|
|
29
|
+
spec,
|
|
30
|
+
merger.apply(
|
|
31
|
+
null,
|
|
32
|
+
objects
|
|
33
|
+
.map((o) => {
|
|
34
|
+
if (!o[section]) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
const r = {};
|
|
38
|
+
r[section] = o[section];
|
|
39
|
+
return r;
|
|
40
|
+
})
|
|
41
|
+
.filter(Boolean)
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function ensureNoComponentColissions(objects) {
|
|
47
|
+
const componentList = {};
|
|
48
|
+
// Fetch the first two levels of components
|
|
49
|
+
for (const object of objects) {
|
|
50
|
+
if (object.components) {
|
|
51
|
+
for (let type in object.components) {
|
|
52
|
+
for (item in object.components[type]) {
|
|
53
|
+
componentList[`components.${type}.${item}`] =
|
|
54
|
+
componentList[`components.${type}.${item}`] || [];
|
|
55
|
+
componentList[`components.${type}.${item}`].push(object.info.title);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
for (let component in componentList) {
|
|
62
|
+
const value = componentList[component];
|
|
63
|
+
if (value.length > 1) {
|
|
64
|
+
throw new Error(
|
|
65
|
+
`Duplicate component detected: ${component} (${value.join(", ")})`
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function ensureNoPathColissions(objects) {
|
|
72
|
+
const actionList = {};
|
|
73
|
+
// Build a map of normalised paths to HTTP verb mapping
|
|
74
|
+
for (const object of objects) {
|
|
75
|
+
for (let path in object.paths) {
|
|
76
|
+
// Normalise the path
|
|
77
|
+
const normalisedPath = path.replace(/\{\w+\}/g, "{VAR}");
|
|
78
|
+
for (let verb in object.paths[path]) {
|
|
79
|
+
const k = `${verb.toUpperCase()} ${normalisedPath}`;
|
|
80
|
+
actionList[k] = actionList[k] || [];
|
|
81
|
+
actionList[k].push(object.info.title);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
for (let action in actionList) {
|
|
87
|
+
const value = actionList[action];
|
|
88
|
+
if (value.length > 1) {
|
|
89
|
+
throw new Error(
|
|
90
|
+
`Duplicate path detected: ${action} (${value.join(", ")})`
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
module.exports = Object.assign(merge, {
|
|
97
|
+
ensureNoComponentColissions,
|
|
98
|
+
ensureNoPathColissions,
|
|
99
|
+
});
|
package/merger.test.js
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
const {
|
|
2
|
+
ensureNoComponentColissions,
|
|
3
|
+
ensureNoPathColissions,
|
|
4
|
+
} = require("./merger");
|
|
5
|
+
const merger = require("./merger");
|
|
6
|
+
|
|
7
|
+
const FooSchema = { type: "string" };
|
|
8
|
+
const BarSchema = { type: "boolean" };
|
|
9
|
+
|
|
10
|
+
describe("#ensureNoComponentColissions", () => {
|
|
11
|
+
it("does not throw when schemas have different prefixes", () => {
|
|
12
|
+
expect(
|
|
13
|
+
ensureNoComponentColissions([
|
|
14
|
+
{ info: { title: "One" }, components: { schemas: { FooSchema } } },
|
|
15
|
+
{
|
|
16
|
+
info: { title: "Two" },
|
|
17
|
+
components: { requestBodies: { FooSchema } },
|
|
18
|
+
},
|
|
19
|
+
])
|
|
20
|
+
).toBe(undefined);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it("does not throw when schemas have different prefixes", () => {
|
|
24
|
+
expect(
|
|
25
|
+
ensureNoComponentColissions([
|
|
26
|
+
{ info: { title: "One" }, components: { schemas: { FooSchema } } },
|
|
27
|
+
{ info: { title: "Two" }, components: { schemas: { BarSchema } } },
|
|
28
|
+
])
|
|
29
|
+
).toBe(undefined);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it("throws when two components have the same name", () => {
|
|
33
|
+
expect(() => {
|
|
34
|
+
ensureNoComponentColissions([
|
|
35
|
+
{ info: { title: "One" }, components: { schemas: { FooSchema } } },
|
|
36
|
+
{ info: { title: "Two" }, components: { schemas: { FooSchema } } },
|
|
37
|
+
]);
|
|
38
|
+
}).toThrow(
|
|
39
|
+
new Error(
|
|
40
|
+
"Duplicate component detected: components.schemas.FooSchema (One, Two)"
|
|
41
|
+
)
|
|
42
|
+
);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it("throws when two components have the same name (multiple schemas)", () => {
|
|
46
|
+
expect(() => {
|
|
47
|
+
ensureNoComponentColissions([
|
|
48
|
+
{ info: { title: "One" }, components: { schemas: { BarSchema } } },
|
|
49
|
+
{
|
|
50
|
+
info: { title: "Two" },
|
|
51
|
+
components: { schemas: { FooSchema, BarSchema } },
|
|
52
|
+
},
|
|
53
|
+
]);
|
|
54
|
+
}).toThrow(
|
|
55
|
+
new Error(
|
|
56
|
+
"Duplicate component detected: components.schemas.BarSchema (One, Two)"
|
|
57
|
+
)
|
|
58
|
+
);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
describe("path collisions", () => {
|
|
63
|
+
it("does not throw with overlapping paths and different verbs", () => {
|
|
64
|
+
expect(
|
|
65
|
+
ensureNoPathColissions([
|
|
66
|
+
{ info: { title: "One" }, paths: { "/foo": { get: {} } } },
|
|
67
|
+
{ info: { title: "Two" }, paths: { "/foo": { post: {} } } },
|
|
68
|
+
])
|
|
69
|
+
).toBe(undefined);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
it("throws when a path has multiple implementations for a verb (static)", () => {
|
|
73
|
+
expect(() => {
|
|
74
|
+
ensureNoPathColissions([
|
|
75
|
+
{ info: { title: "One" }, paths: { "/foo": { get: {} } } },
|
|
76
|
+
{ info: { title: "Two" }, paths: { "/foo": { get: {} } } },
|
|
77
|
+
]);
|
|
78
|
+
}).toThrow(new Error("Duplicate path detected: GET /foo (One, Two)"));
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it("throws when a path has multiple implementations for a verb (regex)", () => {
|
|
82
|
+
expect(() => {
|
|
83
|
+
ensureNoPathColissions([
|
|
84
|
+
{ info: { title: "One" }, paths: { "/users/{userId}": { get: {} } } },
|
|
85
|
+
{ info: { title: "Two" }, paths: { "/users/{id}": { get: {} } } },
|
|
86
|
+
]);
|
|
87
|
+
}).toThrow(
|
|
88
|
+
new Error("Duplicate path detected: GET /users/{VAR} (One, Two)")
|
|
89
|
+
);
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
it("throws with multiple variables in the path", () => {
|
|
93
|
+
expect(() => {
|
|
94
|
+
ensureNoPathColissions([
|
|
95
|
+
{
|
|
96
|
+
info: { title: "One" },
|
|
97
|
+
paths: { "/users/{userId}/purchases/{id}": { get: {} } },
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
info: { title: "Two" },
|
|
101
|
+
paths: {
|
|
102
|
+
"/foo": { post: {} },
|
|
103
|
+
"/users/{id}/purchases/{purchaseId}": { get: {} },
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
]);
|
|
107
|
+
}).toThrow(
|
|
108
|
+
new Error(
|
|
109
|
+
"Duplicate path detected: GET /users/{VAR}/purchases/{VAR} (One, Two)"
|
|
110
|
+
)
|
|
111
|
+
);
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
describe("uses the last provided value for:", () => {
|
|
116
|
+
it("openapi", () => {
|
|
117
|
+
expect(merger({ openapi: "3.0.3" }, { openapi: "3.1.0" })).toEqual({
|
|
118
|
+
openapi: "3.1.0",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
it("info", () => {
|
|
123
|
+
expect(
|
|
124
|
+
merger({ info: { title: "OAS One" } }, { info: { title: "OAS Two" } })
|
|
125
|
+
).toEqual({ info: { title: "OAS Two" } });
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
it("servers", () => {
|
|
129
|
+
expect(
|
|
130
|
+
merger(
|
|
131
|
+
{
|
|
132
|
+
servers: [
|
|
133
|
+
{ url: "https://example.com", description: "My API Description" },
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
servers: [
|
|
138
|
+
{
|
|
139
|
+
url: "https://api.example.com",
|
|
140
|
+
description: "Overwritten value",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
).toEqual({
|
|
146
|
+
servers: [
|
|
147
|
+
{ url: "https://api.example.com", description: "Overwritten value" },
|
|
148
|
+
],
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
describe("concatenates values for:", () => {
|
|
154
|
+
it("tags", () => {
|
|
155
|
+
expect(
|
|
156
|
+
merger(
|
|
157
|
+
{ tags: [{ name: "One", description: "Description one" }] },
|
|
158
|
+
{ tags: [{ name: "Two", description: "Description two" }] }
|
|
159
|
+
)
|
|
160
|
+
).toEqual({
|
|
161
|
+
tags: [
|
|
162
|
+
{ name: "One", description: "Description one" },
|
|
163
|
+
{ name: "Two", description: "Description two" },
|
|
164
|
+
],
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
it("paths", () => {
|
|
169
|
+
expect(
|
|
170
|
+
merger(
|
|
171
|
+
{
|
|
172
|
+
info: { title: "One" },
|
|
173
|
+
paths: { "/users": { get: { operationId: "list-users" } } },
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
info: { title: "Two" },
|
|
177
|
+
paths: { "/users": { post: { operationId: "create-user" } } },
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
).toMatchObject({
|
|
181
|
+
paths: {
|
|
182
|
+
"/users": {
|
|
183
|
+
get: { operationId: "list-users" },
|
|
184
|
+
post: { operationId: "create-user" },
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
it("security", () => {
|
|
191
|
+
expect(
|
|
192
|
+
merger(
|
|
193
|
+
{ security: [{ basicAuth: { type: "http", scheme: "basic" } }] },
|
|
194
|
+
{
|
|
195
|
+
security: [
|
|
196
|
+
{
|
|
197
|
+
bearerAuth: {
|
|
198
|
+
type: "http",
|
|
199
|
+
scheme: "bearer",
|
|
200
|
+
bearerFormat: "JWT",
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
}
|
|
205
|
+
)
|
|
206
|
+
).toEqual({
|
|
207
|
+
security: [
|
|
208
|
+
{ basicAuth: { type: "http", scheme: "basic" } },
|
|
209
|
+
{
|
|
210
|
+
bearerAuth: {
|
|
211
|
+
type: "http",
|
|
212
|
+
scheme: "bearer",
|
|
213
|
+
bearerFormat: "JWT",
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "oas-toolkit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"oas-toolkit": "./cli/bin.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "jest"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [],
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"jest": "^29.5.0"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@apidevtools/json-schema-ref-parser": "^10.1.0",
|
|
20
|
+
"debug": "^4.3.4",
|
|
21
|
+
"js-yaml": "^4.1.0",
|
|
22
|
+
"jsonpath-plus": "^7.2.0",
|
|
23
|
+
"mergician": "^1.1.0",
|
|
24
|
+
"yargs": "^17.7.1"
|
|
25
|
+
}
|
|
26
|
+
}
|