@redocly/openapi-core 1.0.0-beta.61 → 1.0.0-beta.65

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 (47) hide show
  1. package/__tests__/lint.test.ts +17 -0
  2. package/__tests__/resolve.test.ts +10 -2
  3. package/__tests__/utils.ts +3 -5
  4. package/lib/benchmark/utils.js +2 -2
  5. package/lib/config/config.d.ts +1 -0
  6. package/lib/config/config.js +3 -3
  7. package/lib/index.d.ts +1 -0
  8. package/lib/index.js +4 -1
  9. package/lib/js-yaml/index.d.ts +3 -0
  10. package/lib/js-yaml/index.js +19 -0
  11. package/lib/oas-types.js +3 -0
  12. package/lib/resolve.d.ts +1 -1
  13. package/lib/resolve.js +3 -4
  14. package/lib/rules/builtin.d.ts +6 -0
  15. package/lib/rules/common/info-description-override.d.ts +2 -0
  16. package/lib/rules/common/info-description-override.js +24 -0
  17. package/lib/rules/common/operation-description-override.d.ts +2 -0
  18. package/lib/rules/common/operation-description-override.js +29 -0
  19. package/lib/rules/common/tag-description-override.d.ts +2 -0
  20. package/lib/rules/common/tag-description-override.js +25 -0
  21. package/lib/rules/oas2/index.d.ts +3 -0
  22. package/lib/rules/oas2/index.js +6 -0
  23. package/lib/rules/oas3/index.d.ts +3 -0
  24. package/lib/rules/oas3/index.js +7 -1
  25. package/lib/types/redocly-yaml.js +332 -21
  26. package/lib/utils.d.ts +5 -1
  27. package/lib/utils.js +18 -3
  28. package/package.json +3 -3
  29. package/src/__tests__/js-yaml.test.ts +47 -0
  30. package/src/__tests__/lint.test.ts +13 -0
  31. package/src/__tests__/utils.test.ts +56 -0
  32. package/src/benchmark/utils.ts +2 -2
  33. package/src/config/config.ts +4 -3
  34. package/src/index.ts +2 -0
  35. package/src/js-yaml/index.ts +19 -0
  36. package/src/oas-types.ts +4 -0
  37. package/src/resolve.ts +5 -5
  38. package/src/rules/__tests__/no-unresolved-refs.test.ts +2 -2
  39. package/src/rules/common/info-description-override.ts +24 -0
  40. package/src/rules/common/operation-description-override.ts +30 -0
  41. package/src/rules/common/tag-description-override.ts +25 -0
  42. package/src/rules/oas2/index.ts +6 -0
  43. package/src/rules/oas3/index.ts +8 -3
  44. package/src/types/redocly-yaml.ts +434 -22
  45. package/src/typings/swagger.ts +0 -1
  46. package/src/utils.ts +27 -3
  47. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,17 @@
1
+ import outdent from 'outdent';
2
+ import { detectOpenAPI } from '../src/oas-types';
3
+ import { parseYamlToDocument } from './utils';
4
+
5
+ describe.only('lint', () => {
6
+ it('detect OpenAPI should throw an error when version is not string', () => {
7
+
8
+ const testDocument = parseYamlToDocument(
9
+ outdent`
10
+ openapi: 3.0
11
+ `,
12
+ '',
13
+ );
14
+ expect(() => detectOpenAPI(testDocument.parsed))
15
+ .toThrow(`Invalid OpenAPI version: should be a string but got "number"`)
16
+ });
17
+ });
@@ -192,7 +192,7 @@ describe('collect refs', () => {
192
192
 
193
193
  expect(resolvedRefs).toBeDefined();
194
194
 
195
- expect(Array.from(resolvedRefs.keys()).map((ref) => ref.substring(cwd.length + 1)))
195
+ expect(Array.from(resolvedRefs.keys()).map((ref) => ref.substring(cwd.length + 1)).sort())
196
196
  .toMatchInlineSnapshot(`
197
197
  Array [
198
198
  "openapi-with-back.yaml::./schemas/type-a.yaml#/",
@@ -201,7 +201,15 @@ describe('collect refs', () => {
201
201
  ]
202
202
  `);
203
203
 
204
- expect(Array.from(resolvedRefs.values()).map((val) => val.node)).toMatchInlineSnapshot(`
204
+ expect(
205
+ Array.from(resolvedRefs.values())
206
+ .map((val) => val.node)
207
+ .sort((firstEl, secondEl) => {
208
+ const getKey = (el: any): string => el?.allOf?.type || el?.type || '';
209
+
210
+ return getKey(firstEl).localeCompare(getKey(secondEl));
211
+ })
212
+ ).toMatchInlineSnapshot(`
205
213
  Array [
206
214
  Object {
207
215
  "allOf": Array [
@@ -1,15 +1,13 @@
1
- import * as yaml from 'js-yaml';
2
1
  import * as path from 'path';
3
2
 
4
- import { Document, Source } from '../src/resolve';
5
- import { NormalizedProblem } from '../src/walk';
3
+ import { Document, Source, NormalizedProblem, parseYaml, stringifyYaml } from '../src';
6
4
  import { RuleConfig, LintConfig, Plugin } from '../src/config/config';
7
5
  import { Oas3RuleSet } from '../src/oas-types';
8
6
 
9
7
  export function parseYamlToDocument(body: string, absoluteRef: string = ''): Document {
10
8
  return {
11
9
  source: new Source(absoluteRef, body),
12
- parsed: yaml.safeLoad(body, { filename: absoluteRef }),
10
+ parsed: parseYaml(body, { filename: absoluteRef }),
13
11
  };
14
12
  }
15
13
 
@@ -41,7 +39,7 @@ export const yamlSerializer = {
41
39
  return true;
42
40
  },
43
41
  print: (val: any) => {
44
- return yaml.safeDump(val);
42
+ return stringifyYaml(val);
45
43
  },
46
44
  };
47
45
 
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makeConfigForRuleset = exports.parseYamlToDocument = void 0;
4
- const yaml = require("js-yaml");
4
+ const js_yaml_1 = require("../js-yaml");
5
5
  const resolve_1 = require("../resolve");
6
6
  const config_1 = require("../config/config");
7
7
  function parseYamlToDocument(body, absoluteRef = '') {
8
8
  return {
9
9
  source: new resolve_1.Source(absoluteRef, body),
10
- parsed: yaml.safeLoad(body, { filename: absoluteRef }),
10
+ parsed: js_yaml_1.parseYaml(body, { filename: absoluteRef }),
11
11
  };
12
12
  }
13
13
  exports.parseYamlToDocument = parseYamlToDocument;
@@ -125,5 +125,6 @@ export declare class Config {
125
125
  apiDefinitions: Record<string, string>;
126
126
  lint: LintConfig;
127
127
  resolve: ResolveConfig;
128
+ licenseKey?: string;
128
129
  constructor(rawConfig: RawConfig, configFile?: string | undefined);
129
130
  }
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Config = exports.LintConfig = exports.IGNORE_FILE = void 0;
4
4
  const fs = require("fs");
5
5
  const path = require("path");
6
- const yaml = require("js-yaml");
7
6
  const path_1 = require("path");
8
7
  const colorette_1 = require("colorette");
8
+ const js_yaml_1 = require("../js-yaml");
9
9
  const utils_1 = require("../utils");
10
10
  const oas_types_1 = require("../oas-types");
11
11
  const recommended_1 = require("./recommended");
@@ -57,7 +57,7 @@ class LintConfig {
57
57
  if (fs.hasOwnProperty('existsSync') && fs.existsSync(ignoreFile)) {
58
58
  // TODO: parse errors
59
59
  this.ignore =
60
- yaml.safeLoad(fs.readFileSync(ignoreFile, 'utf-8')) || {};
60
+ js_yaml_1.parseYaml(fs.readFileSync(ignoreFile, 'utf-8')) || {};
61
61
  // resolve ignore paths
62
62
  for (const fileName of Object.keys(this.ignore)) {
63
63
  this.ignore[path.resolve(path_1.dirname(ignoreFile), fileName)] = this.ignore[fileName];
@@ -78,7 +78,7 @@ class LintConfig {
78
78
  ignoredRules[ruleId] = Array.from(ignoredRules[ruleId]);
79
79
  }
80
80
  }
81
- fs.writeFileSync(ignoreFile, IGNORE_BANNER + yaml.safeDump(mapped));
81
+ fs.writeFileSync(ignoreFile, IGNORE_BANNER + js_yaml_1.stringifyYaml(mapped));
82
82
  }
83
83
  addIgnore(problem) {
84
84
  const ignore = this.ignore;
package/lib/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export { Config, LintConfig, RawConfig, IGNORE_FILE } from './config/config';
12
12
  export { loadConfig } from './config/load';
13
13
  export { RedoclyClient } from './redocly';
14
14
  export { Source, BaseResolver, Document, resolveDocument, ResolveError, YamlParseError, makeDocumentFromString, } from './resolve';
15
+ export { parseYaml, stringifyYaml } from './js-yaml';
15
16
  export { unescapePointer } from './ref-utils';
16
17
  export { detectOpenAPI, OasMajorVersion, openAPIMajor, OasVersion } from './oas-types';
17
18
  export { normalizeVisitors } from './visitors';
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bundleDocument = exports.bundle = exports.lintConfig = exports.lintFromString = exports.lintDocument = exports.validate = exports.lint = exports.getTotals = exports.formatProblems = exports.getLineColLocation = exports.getAstNodeByPointer = exports.walkDocument = exports.normalizeVisitors = exports.OasVersion = exports.openAPIMajor = exports.OasMajorVersion = exports.detectOpenAPI = exports.unescapePointer = exports.makeDocumentFromString = exports.YamlParseError = exports.ResolveError = exports.resolveDocument = exports.BaseResolver = exports.Source = exports.RedoclyClient = exports.loadConfig = exports.IGNORE_FILE = exports.LintConfig = exports.Config = exports.Stats = exports.normalizeTypes = exports.ConfigTypes = exports.Oas2Types = exports.Oas3Types = exports.Oas3_1Types = exports.readFileFromUrl = void 0;
3
+ exports.bundleDocument = exports.bundle = exports.lintConfig = exports.lintFromString = exports.lintDocument = exports.validate = exports.lint = exports.getTotals = exports.formatProblems = exports.getLineColLocation = exports.getAstNodeByPointer = exports.walkDocument = exports.normalizeVisitors = exports.OasVersion = exports.openAPIMajor = exports.OasMajorVersion = exports.detectOpenAPI = exports.unescapePointer = exports.stringifyYaml = exports.parseYaml = exports.makeDocumentFromString = exports.YamlParseError = exports.ResolveError = exports.resolveDocument = exports.BaseResolver = exports.Source = exports.RedoclyClient = exports.loadConfig = exports.IGNORE_FILE = exports.LintConfig = exports.Config = exports.Stats = exports.normalizeTypes = exports.ConfigTypes = exports.Oas2Types = exports.Oas3Types = exports.Oas3_1Types = exports.readFileFromUrl = void 0;
4
4
  var utils_1 = require("./utils");
5
5
  Object.defineProperty(exports, "readFileFromUrl", { enumerable: true, get: function () { return utils_1.readFileFromUrl; } });
6
6
  var oas3_1_1 = require("./types/oas3_1");
@@ -30,6 +30,9 @@ Object.defineProperty(exports, "resolveDocument", { enumerable: true, get: funct
30
30
  Object.defineProperty(exports, "ResolveError", { enumerable: true, get: function () { return resolve_1.ResolveError; } });
31
31
  Object.defineProperty(exports, "YamlParseError", { enumerable: true, get: function () { return resolve_1.YamlParseError; } });
32
32
  Object.defineProperty(exports, "makeDocumentFromString", { enumerable: true, get: function () { return resolve_1.makeDocumentFromString; } });
33
+ var js_yaml_1 = require("./js-yaml");
34
+ Object.defineProperty(exports, "parseYaml", { enumerable: true, get: function () { return js_yaml_1.parseYaml; } });
35
+ Object.defineProperty(exports, "stringifyYaml", { enumerable: true, get: function () { return js_yaml_1.stringifyYaml; } });
33
36
  var ref_utils_1 = require("./ref-utils");
34
37
  Object.defineProperty(exports, "unescapePointer", { enumerable: true, get: function () { return ref_utils_1.unescapePointer; } });
35
38
  var oas_types_1 = require("./oas-types");
@@ -0,0 +1,3 @@
1
+ import { LoadOptions, DumpOptions } from 'js-yaml';
2
+ export declare const parseYaml: (str: string, opts?: LoadOptions | undefined) => unknown;
3
+ export declare const stringifyYaml: (obj: any, opts?: DumpOptions | undefined) => string;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stringifyYaml = exports.parseYaml = void 0;
4
+ // TODO: add a type for "types" https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/js-yaml/index.d.ts
5
+ // @ts-ignore
6
+ const js_yaml_1 = require("js-yaml");
7
+ const DEFAULT_SCHEMA_WITHOUT_TIMESTAMP = js_yaml_1.JSON_SCHEMA.extend({
8
+ implicit: [js_yaml_1.types.merge],
9
+ explicit: [
10
+ js_yaml_1.types.binary,
11
+ js_yaml_1.types.omap,
12
+ js_yaml_1.types.pairs,
13
+ js_yaml_1.types.set,
14
+ ],
15
+ });
16
+ const parseYaml = (str, opts) => js_yaml_1.load(str, Object.assign({ schema: DEFAULT_SCHEMA_WITHOUT_TIMESTAMP }, opts));
17
+ exports.parseYaml = parseYaml;
18
+ const stringifyYaml = (obj, opts) => js_yaml_1.dump(obj, Object.assign({ schema: DEFAULT_SCHEMA_WITHOUT_TIMESTAMP }, opts));
19
+ exports.stringifyYaml = stringifyYaml;
package/lib/oas-types.js CHANGED
@@ -19,6 +19,9 @@ function detectOpenAPI(root) {
19
19
  if (!(root.openapi || root.swagger)) {
20
20
  throw new Error('This doesn’t look like an OpenAPI document.\n');
21
21
  }
22
+ if (root.openapi && typeof root.openapi !== 'string') {
23
+ throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof root.openapi}"`);
24
+ }
22
25
  if (root.openapi && root.openapi.startsWith('3.0')) {
23
26
  return OasVersion.Version3_0;
24
27
  }
package/lib/resolve.d.ts CHANGED
@@ -29,7 +29,7 @@ export declare type Document = {
29
29
  };
30
30
  export declare function makeDocumentFromString(sourceString: string, absoluteRef: string): {
31
31
  source: Source;
32
- parsed: string | object | undefined;
32
+ parsed: unknown;
33
33
  };
34
34
  export declare class BaseResolver {
35
35
  private config;
package/lib/resolve.js CHANGED
@@ -13,7 +13,6 @@ exports.resolveDocument = exports.BaseResolver = exports.makeDocumentFromString
13
13
  const fs = require("fs");
14
14
  const path = require("path");
15
15
  const url = require("url");
16
- const yaml = require("js-yaml");
17
16
  const ref_utils_1 = require("./ref-utils");
18
17
  const types_1 = require("./types");
19
18
  const utils_1 = require("./utils");
@@ -56,7 +55,7 @@ class ResolveError extends Error {
56
55
  }
57
56
  }
58
57
  exports.ResolveError = ResolveError;
59
- const jsYamlErrorLineColRegexp = /at line (\d+), column (\d+):/;
58
+ const jsYamlErrorLineColRegexp = /\((\d+):(\d+)\)$/;
60
59
  class YamlParseError extends Error {
61
60
  constructor(originalError, source) {
62
61
  super(originalError.message.split('\n')[0]);
@@ -75,7 +74,7 @@ function makeDocumentFromString(sourceString, absoluteRef) {
75
74
  try {
76
75
  return {
77
76
  source,
78
- parsed: yaml.safeLoad(sourceString, { filename: absoluteRef }),
77
+ parsed: utils_1.parseYaml(sourceString, { filename: absoluteRef }),
79
78
  };
80
79
  }
81
80
  catch (e) {
@@ -128,7 +127,7 @@ class BaseResolver {
128
127
  try {
129
128
  return {
130
129
  source,
131
- parsed: yaml.safeLoad(source.body, { filename: source.absoluteRef }),
130
+ parsed: utils_1.parseYaml(source.body, { filename: source.absoluteRef }),
132
131
  };
133
132
  }
134
133
  catch (e) {
@@ -7,8 +7,14 @@ export declare const preprocessors: {
7
7
  export declare const decorators: {
8
8
  oas3: {
9
9
  'registry-dependencies': import("../visitors").Oas3Decorator;
10
+ 'operation-description-override': import("../visitors").Oas3Decorator;
11
+ 'tag-description-override': import("../visitors").Oas3Decorator;
12
+ 'info-description-override': import("../visitors").Oas3Decorator;
10
13
  };
11
14
  oas2: {
12
15
  'registry-dependencies': import("../visitors").Oas2Decorator;
16
+ 'operation-description-override': import("../visitors").Oas2Decorator;
17
+ 'tag-description-override': import("../visitors").Oas2Decorator;
18
+ 'info-description-override': import("../visitors").Oas2Decorator;
13
19
  };
14
20
  };
@@ -0,0 +1,2 @@
1
+ import { Oas3Decorator, Oas2Decorator } from '../../visitors';
2
+ export declare const InfoDescriptionOverride: Oas3Decorator | Oas2Decorator;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InfoDescriptionOverride = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const InfoDescriptionOverride = ({ filePath }) => {
6
+ return {
7
+ Info: {
8
+ leave(info, { report, location }) {
9
+ if (!filePath)
10
+ throw new Error(`Parameter "filePath" is not provided for "info-description-override" rule`);
11
+ try {
12
+ info.description = utils_1.readFileAsStringSync(filePath);
13
+ }
14
+ catch (e) {
15
+ report({
16
+ message: `Failed to read markdown override file for "info.description".\n${e.message}`,
17
+ location: location.child('description'),
18
+ });
19
+ }
20
+ },
21
+ },
22
+ };
23
+ };
24
+ exports.InfoDescriptionOverride = InfoDescriptionOverride;
@@ -0,0 +1,2 @@
1
+ import { Oas3Decorator, Oas2Decorator } from '../../visitors';
2
+ export declare const OperationDescriptionOverride: Oas3Decorator | Oas2Decorator;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OperationDescriptionOverride = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const OperationDescriptionOverride = ({ operationIds }) => {
6
+ return {
7
+ Operation: {
8
+ leave(operation, { report, location }) {
9
+ if (!operation.operationId)
10
+ return;
11
+ if (!operationIds)
12
+ throw new Error(`Parameter "operationIds" is not provided for "operation-description-override" rule`);
13
+ const operationId = operation.operationId;
14
+ if (operationIds[operationId]) {
15
+ try {
16
+ operation.description = utils_1.readFileAsStringSync(operationIds[operationId]);
17
+ }
18
+ catch (e) {
19
+ report({
20
+ message: `Failed to read markdown override file for operation "${operationId}".\n${e.message}`,
21
+ location: location.child('operationId').key(),
22
+ });
23
+ }
24
+ }
25
+ },
26
+ },
27
+ };
28
+ };
29
+ exports.OperationDescriptionOverride = OperationDescriptionOverride;
@@ -0,0 +1,2 @@
1
+ import { Oas3Decorator, Oas2Decorator } from '../../visitors';
2
+ export declare const TagDescriptionOverride: Oas3Decorator | Oas2Decorator;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagDescriptionOverride = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const TagDescriptionOverride = ({ tagNames }) => {
6
+ return {
7
+ Tag: {
8
+ leave(tag, { report }) {
9
+ if (!tagNames)
10
+ throw new Error(`Parameter "tagNames" is not provided for "tag-description-override" rule`);
11
+ if (tagNames[tag.name]) {
12
+ try {
13
+ tag.description = utils_1.readFileAsStringSync(tagNames[tag.name]);
14
+ }
15
+ catch (e) {
16
+ report({
17
+ message: `Failed to read markdown override file for tag "${tag.name}".\n${e.message}`,
18
+ });
19
+ }
20
+ }
21
+ },
22
+ },
23
+ };
24
+ };
25
+ exports.TagDescriptionOverride = TagDescriptionOverride;
@@ -34,4 +34,7 @@ export declare const rules: {
34
34
  export declare const preprocessors: {};
35
35
  export declare const decorators: {
36
36
  'registry-dependencies': Oas2Decorator;
37
+ 'operation-description-override': Oas2Decorator;
38
+ 'tag-description-override': Oas2Decorator;
39
+ 'info-description-override': Oas2Decorator;
37
40
  };
@@ -31,6 +31,9 @@ const no_identical_paths_1 = require("../common/no-identical-paths");
31
31
  const operation_operationId_1 = require("../common/operation-operationId");
32
32
  const operation_summary_1 = require("../common/operation-summary");
33
33
  const no_ambiguous_paths_1 = require("../common/no-ambiguous-paths");
34
+ const operation_description_override_1 = require("../common/operation-description-override");
35
+ const tag_description_override_1 = require("../common/tag-description-override");
36
+ const info_description_override_1 = require("../common/info-description-override");
34
37
  exports.rules = {
35
38
  spec: spec_1.OasSpec,
36
39
  'info-description': info_description_1.InfoDescription,
@@ -66,4 +69,7 @@ exports.rules = {
66
69
  exports.preprocessors = {};
67
70
  exports.decorators = {
68
71
  'registry-dependencies': registry_dependencies_1.RegistryDependencies,
72
+ 'operation-description-override': operation_description_override_1.OperationDescriptionOverride,
73
+ 'tag-description-override': tag_description_override_1.TagDescriptionOverride,
74
+ 'info-description-override': info_description_override_1.InfoDescriptionOverride,
69
75
  };
@@ -4,4 +4,7 @@ export declare const rules: Oas3RuleSet;
4
4
  export declare const preprocessors: {};
5
5
  export declare const decorators: {
6
6
  'registry-dependencies': Oas3Decorator;
7
+ 'operation-description-override': Oas3Decorator;
8
+ 'tag-description-override': Oas3Decorator;
9
+ 'info-description-override': Oas3Decorator;
7
10
  };
@@ -39,6 +39,9 @@ const operation_operationId_1 = require("../common/operation-operationId");
39
39
  const operation_summary_1 = require("../common/operation-summary");
40
40
  const no_ambiguous_paths_1 = require("../common/no-ambiguous-paths");
41
41
  const no_servers_empty_enum_1 = require("./no-servers-empty-enum");
42
+ const operation_description_override_1 = require("../common/operation-description-override");
43
+ const tag_description_override_1 = require("../common/tag-description-override");
44
+ const info_description_override_1 = require("../common/info-description-override");
42
45
  exports.rules = {
43
46
  spec: spec_1.OasSpec,
44
47
  'info-description': info_description_1.InfoDescription,
@@ -77,9 +80,12 @@ exports.rules = {
77
80
  'no-identical-paths': no_identical_paths_1.NoIdenticalPaths,
78
81
  'no-ambiguous-paths': no_ambiguous_paths_1.NoAmbiguousPaths,
79
82
  'no-undefined-server-variable': no_undefined_server_variable_1.NoUndefinedServerVariable,
80
- 'no-servers-empty-enum': no_servers_empty_enum_1.NoEmptyEnumServers
83
+ 'no-servers-empty-enum': no_servers_empty_enum_1.NoEmptyEnumServers,
81
84
  };
82
85
  exports.preprocessors = {};
83
86
  exports.decorators = {
84
87
  'registry-dependencies': registry_dependencies_1.RegistryDependencies,
88
+ 'operation-description-override': operation_description_override_1.OperationDescriptionOverride,
89
+ 'tag-description-override': tag_description_override_1.TagDescriptionOverride,
90
+ 'info-description-override': info_description_override_1.InfoDescriptionOverride,
85
91
  };