@e22m4u/js-openapi 0.0.8 → 0.0.9
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/dist/cjs/index.cjs
CHANGED
|
@@ -2003,14 +2003,14 @@ var OADocumentBuilder = class extends import_js_service.Service {
|
|
|
2003
2003
|
if (!componentsKey) {
|
|
2004
2004
|
throw new import_js_format6.InvalidArgumentError(
|
|
2005
2005
|
"Component type %v does not have a reference to the components key.",
|
|
2006
|
-
|
|
2006
|
+
type
|
|
2007
2007
|
);
|
|
2008
2008
|
}
|
|
2009
2009
|
const definitionName = OA_COMPONENT_TYPE_TO_DEFINITION_NAME_MAP[type];
|
|
2010
2010
|
if (!definitionName) {
|
|
2011
2011
|
throw new import_js_format6.InvalidArgumentError(
|
|
2012
2012
|
"Component type %v does not have a reference to the definition name.",
|
|
2013
|
-
|
|
2013
|
+
type
|
|
2014
2014
|
);
|
|
2015
2015
|
}
|
|
2016
2016
|
validateOADocumentObject(component, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e22m4u/js-openapi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "JavaScript модуль для создания OpenAPI Документа",
|
|
5
5
|
"author": "Mikhail Evstropov <e22m4u@yandex.ru>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"openapi",
|
|
10
10
|
"generator"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://gitverse.ru/e22m4u/js-openapi",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "git+https://
|
|
15
|
+
"url": "git+https://gitverse.ru/e22m4u/js-openapi.git"
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|
|
18
18
|
"types": "./src/index.d.ts",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@e22m4u/js-format": "~0.4.0",
|
|
40
|
-
"@e22m4u/js-service": "~0.
|
|
40
|
+
"@e22m4u/js-service": "~0.6.1",
|
|
41
41
|
"ajv": "~8.18.0",
|
|
42
42
|
"ajv-formats": "~3.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@commitlint/cli": "~20.4.
|
|
46
|
-
"@commitlint/config-conventional": "~20.4.
|
|
45
|
+
"@commitlint/cli": "~20.4.3",
|
|
46
|
+
"@commitlint/config-conventional": "~20.4.3",
|
|
47
47
|
"@eslint/js": "~9.39.2",
|
|
48
48
|
"@types/chai": "~5.2.3",
|
|
49
49
|
"@types/mocha": "~10.0.10",
|
|
50
|
-
"c8": "~
|
|
50
|
+
"c8": "~11.0.0",
|
|
51
51
|
"chai": "~6.2.2",
|
|
52
52
|
"esbuild": "~0.27.3",
|
|
53
53
|
"eslint": "~9.39.2",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"eslint-plugin-import": "~2.32.0",
|
|
57
57
|
"eslint-plugin-jsdoc": "~62.7.1",
|
|
58
58
|
"eslint-plugin-mocha": "~11.2.0",
|
|
59
|
-
"globals": "~17.
|
|
59
|
+
"globals": "~17.4.0",
|
|
60
60
|
"husky": "~9.1.7",
|
|
61
61
|
"mocha": "~11.7.5",
|
|
62
62
|
"prettier": "~3.8.1",
|
|
@@ -184,7 +184,7 @@ export class OADocumentBuilder extends Service {
|
|
|
184
184
|
if (!componentsKey) {
|
|
185
185
|
throw new InvalidArgumentError(
|
|
186
186
|
'Component type %v does not have a reference to the components key.',
|
|
187
|
-
|
|
187
|
+
type,
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
190
|
// definition name
|
|
@@ -192,7 +192,7 @@ export class OADocumentBuilder extends Service {
|
|
|
192
192
|
if (!definitionName) {
|
|
193
193
|
throw new InvalidArgumentError(
|
|
194
194
|
'Component type %v does not have a reference to the definition name.',
|
|
195
|
-
|
|
195
|
+
type,
|
|
196
196
|
);
|
|
197
197
|
}
|
|
198
198
|
// validation
|