@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.
@@ -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
- componentsKey
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
- definitionName
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.8",
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://gitrepos.ru/e22m4u/js-openapi",
12
+ "homepage": "https://gitverse.ru/e22m4u/js-openapi",
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "git+https://gitrepos.ru/e22m4u/js-openapi.git"
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.5.1",
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.2",
46
- "@commitlint/config-conventional": "~20.4.2",
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": "~10.1.3",
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.3.0",
59
+ "globals": "~17.4.0",
60
60
  "husky": "~9.1.7",
61
61
  "mocha": "~11.7.5",
62
62
  "prettier": "~3.8.1",
@@ -7,10 +7,10 @@ export declare class OADocumentObjectValidationError extends Errorf {
7
7
  /**
8
8
  * Instance path.
9
9
  */
10
- readonly instancePath?: string;
10
+ instancePath?: string;
11
11
 
12
12
  /**
13
13
  * Reason.
14
14
  */
15
- readonly reason?: string;
15
+ reason?: string;
16
16
  }
@@ -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
- componentsKey,
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
- definitionName,
195
+ type,
196
196
  );
197
197
  }
198
198
  // validation