@eventcatalog/linter 1.0.0 → 1.0.1

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 (90) hide show
  1. package/README.md +1 -1
  2. package/package.json +14 -17
  3. package/dist/cli/index.d.ts +0 -3
  4. package/dist/cli/index.d.ts.map +0 -1
  5. package/dist/cli/index.js +0 -73
  6. package/dist/cli/index.js.map +0 -1
  7. package/dist/config/index.d.ts +0 -29
  8. package/dist/config/index.d.ts.map +0 -1
  9. package/dist/config/index.js +0 -207
  10. package/dist/config/index.js.map +0 -1
  11. package/dist/index.d.ts +0 -8
  12. package/dist/index.d.ts.map +0 -1
  13. package/dist/index.js +0 -24
  14. package/dist/index.js.map +0 -1
  15. package/dist/parser/index.d.ts +0 -17
  16. package/dist/parser/index.d.ts.map +0 -1
  17. package/dist/parser/index.js +0 -43
  18. package/dist/parser/index.js.map +0 -1
  19. package/dist/reporters/index.d.ts +0 -16
  20. package/dist/reporters/index.d.ts.map +0 -1
  21. package/dist/reporters/index.js +0 -155
  22. package/dist/reporters/index.js.map +0 -1
  23. package/dist/scanner/index.d.ts +0 -14
  24. package/dist/scanner/index.d.ts.map +0 -1
  25. package/dist/scanner/index.js +0 -102
  26. package/dist/scanner/index.js.map +0 -1
  27. package/dist/schemas/channel.d.ts +0 -389
  28. package/dist/schemas/channel.d.ts.map +0 -1
  29. package/dist/schemas/channel.js +0 -20
  30. package/dist/schemas/channel.js.map +0 -1
  31. package/dist/schemas/common.d.ts +0 -550
  32. package/dist/schemas/common.d.ts.map +0 -1
  33. package/dist/schemas/common.js +0 -144
  34. package/dist/schemas/common.js.map +0 -1
  35. package/dist/schemas/data-store.d.ts +0 -348
  36. package/dist/schemas/data-store.d.ts.map +0 -1
  37. package/dist/schemas/data-store.js +0 -17
  38. package/dist/schemas/data-store.js.map +0 -1
  39. package/dist/schemas/domain.d.ts +0 -381
  40. package/dist/schemas/domain.d.ts.map +0 -1
  41. package/dist/schemas/domain.js +0 -13
  42. package/dist/schemas/domain.js.map +0 -1
  43. package/dist/schemas/entity.d.ts +0 -382
  44. package/dist/schemas/entity.d.ts.map +0 -1
  45. package/dist/schemas/entity.js +0 -24
  46. package/dist/schemas/entity.js.map +0 -1
  47. package/dist/schemas/flow.d.ts +0 -733
  48. package/dist/schemas/flow.d.ts.map +0 -1
  49. package/dist/schemas/flow.js +0 -70
  50. package/dist/schemas/flow.js.map +0 -1
  51. package/dist/schemas/index.d.ts +0 -3815
  52. package/dist/schemas/index.d.ts.map +0 -1
  53. package/dist/schemas/index.js +0 -50
  54. package/dist/schemas/index.js.map +0 -1
  55. package/dist/schemas/message.d.ts +0 -1076
  56. package/dist/schemas/message.d.ts.map +0 -1
  57. package/dist/schemas/message.js +0 -17
  58. package/dist/schemas/message.js.map +0 -1
  59. package/dist/schemas/service.d.ts +0 -417
  60. package/dist/schemas/service.d.ts.map +0 -1
  61. package/dist/schemas/service.js +0 -15
  62. package/dist/schemas/service.js.map +0 -1
  63. package/dist/schemas/team.d.ts +0 -45
  64. package/dist/schemas/team.d.ts.map +0 -1
  65. package/dist/schemas/team.js +0 -20
  66. package/dist/schemas/team.js.map +0 -1
  67. package/dist/schemas/user.d.ts +0 -48
  68. package/dist/schemas/user.d.ts.map +0 -1
  69. package/dist/schemas/user.js +0 -21
  70. package/dist/schemas/user.js.map +0 -1
  71. package/dist/types/index.d.ts +0 -82
  72. package/dist/types/index.d.ts.map +0 -1
  73. package/dist/types/index.js +0 -3
  74. package/dist/types/index.js.map +0 -1
  75. package/dist/validators/best-practices-validator.d.ts +0 -4
  76. package/dist/validators/best-practices-validator.d.ts.map +0 -1
  77. package/dist/validators/best-practices-validator.js +0 -63
  78. package/dist/validators/best-practices-validator.js.map +0 -1
  79. package/dist/validators/index.d.ts +0 -8
  80. package/dist/validators/index.d.ts.map +0 -1
  81. package/dist/validators/index.js +0 -41
  82. package/dist/validators/index.js.map +0 -1
  83. package/dist/validators/reference-validator.d.ts +0 -15
  84. package/dist/validators/reference-validator.d.ts.map +0 -1
  85. package/dist/validators/reference-validator.js +0 -432
  86. package/dist/validators/reference-validator.js.map +0 -1
  87. package/dist/validators/schema-validator.d.ts +0 -5
  88. package/dist/validators/schema-validator.d.ts.map +0 -1
  89. package/dist/validators/schema-validator.js +0 -62
  90. package/dist/validators/schema-validator.js.map +0 -1
@@ -1,82 +0,0 @@
1
- export interface Badge {
2
- content: string;
3
- backgroundColor: string;
4
- textColor: string;
5
- icon?: string;
6
- link?: string;
7
- }
8
- export interface Specification {
9
- type: 'asyncapi' | 'openapi';
10
- path: string;
11
- name?: string;
12
- }
13
- export interface Repository {
14
- language: string;
15
- url: string;
16
- }
17
- export interface DraftObject {
18
- title: string;
19
- message: string;
20
- }
21
- export interface DeprecatedObject {
22
- date: string;
23
- message?: string;
24
- }
25
- export interface ResourceReference {
26
- id: string;
27
- version?: string;
28
- }
29
- export interface Parameter {
30
- enum?: string[];
31
- description?: string;
32
- examples?: string[];
33
- default?: string;
34
- }
35
- export interface FlowStep {
36
- id: string;
37
- title: string;
38
- summary?: string;
39
- actor?: {
40
- name: string;
41
- };
42
- message?: {
43
- id: string;
44
- version: string;
45
- };
46
- service?: {
47
- id: string;
48
- version: string;
49
- };
50
- externalSystem?: {
51
- name: string;
52
- summary?: string;
53
- url?: string;
54
- };
55
- next_step?: string;
56
- next_steps?: string[];
57
- }
58
- export interface EntityProperty {
59
- name: string;
60
- type: string;
61
- required?: boolean;
62
- description?: string;
63
- references?: string;
64
- referencesIdentifier?: string;
65
- relationType?: 'one-to-one' | 'one-to-many';
66
- }
67
- export interface ValidationError {
68
- type: 'schema' | 'reference';
69
- resource: string;
70
- field?: string;
71
- message: string;
72
- file: string;
73
- line?: number;
74
- severity?: 'error' | 'warning';
75
- rule?: string;
76
- }
77
- export interface LinterOptions {
78
- rootDir: string;
79
- failOnWarning?: boolean;
80
- verbose?: boolean;
81
- }
82
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":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AE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,cAAc,CAAC,EAAE;QACf,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;CAC7C;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { ParsedFile } from '../parser';
2
- import { ValidationError } from '../types';
3
- export declare const validateBestPractices: (parsedFiles: ParsedFile[]) => ValidationError[];
4
- //# sourceMappingURL=best-practices-validator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"best-practices-validator.d.ts","sourceRoot":"","sources":["../../src/validators/best-practices-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,qBAAqB,GAAI,aAAa,UAAU,EAAE,KAAG,eAAe,EAmEhF,CAAC"}
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateBestPractices = void 0;
4
- const validateBestPractices = (parsedFiles) => {
5
- const errors = [];
6
- for (const parsedFile of parsedFiles) {
7
- const { file, frontmatter, content } = parsedFile;
8
- // Check for required summary
9
- if (!frontmatter.summary || (typeof frontmatter.summary === 'string' && frontmatter.summary.trim() === '')) {
10
- errors.push({
11
- type: 'schema',
12
- resource: `${file.resourceType}/${file.resourceId}`,
13
- field: 'summary',
14
- message: 'Summary is required for better documentation',
15
- file: file.relativePath,
16
- severity: 'error',
17
- rule: 'best-practices/summary-required',
18
- });
19
- }
20
- // Check for required owners (skip users and teams - they are owners, not owned)
21
- if (file.resourceType !== 'user' &&
22
- file.resourceType !== 'team' &&
23
- (!frontmatter.owners || !Array.isArray(frontmatter.owners) || frontmatter.owners.length === 0)) {
24
- errors.push({
25
- type: 'schema',
26
- resource: `${file.resourceType}/${file.resourceId}`,
27
- field: 'owners',
28
- message: 'At least one owner is required',
29
- file: file.relativePath,
30
- severity: 'error',
31
- rule: 'best-practices/owner-required',
32
- });
33
- }
34
- // Check for required description (markdown body content)
35
- if (!content || content.trim() === '') {
36
- errors.push({
37
- type: 'schema',
38
- resource: `${file.resourceType}/${file.resourceId}`,
39
- field: 'description',
40
- message: 'Resource should have a markdown description (body content) beyond just frontmatter',
41
- file: file.relativePath,
42
- severity: 'warning',
43
- rule: 'best-practices/description-required',
44
- });
45
- }
46
- // Check for required schemaPath on messages (events, commands, queries)
47
- if ((file.resourceType === 'event' || file.resourceType === 'command' || file.resourceType === 'query') &&
48
- !frontmatter.schemaPath) {
49
- errors.push({
50
- type: 'schema',
51
- resource: `${file.resourceType}/${file.resourceId}`,
52
- field: 'schemaPath',
53
- message: `${file.resourceType} should have a schemaPath defined for consumers to understand the contract`,
54
- file: file.relativePath,
55
- severity: 'warning',
56
- rule: 'best-practices/schema-required',
57
- });
58
- }
59
- }
60
- return errors;
61
- };
62
- exports.validateBestPractices = validateBestPractices;
63
- //# sourceMappingURL=best-practices-validator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"best-practices-validator.js","sourceRoot":"","sources":["../../src/validators/best-practices-validator.ts"],"names":[],"mappings":";;;AAGO,MAAM,qBAAqB,GAAG,CAAC,WAAyB,EAAqB,EAAE;IACpF,MAAM,MAAM,GAAsB,EAAE,CAAC;IAErC,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACrC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;QAElD,6BAA6B;QAC7B,IAAI,CAAC,WAAW,CAAC,OAAO,IAAI,CAAC,OAAO,WAAW,CAAC,OAAO,KAAK,QAAQ,IAAI,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;YAC3G,MAAM,CAAC,IAAI,CAAC;gBACV,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,GAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,UAAU,EAAE;gBACnD,KAAK,EAAE,SAAS;gBAChB,OAAO,EAAE,8CAA8C;gBACvD,IAAI,EAAE,IAAI,CAAC,YAAY;gBACvB,QAAQ,EAAE,OAAO;gBACjB,IAAI,EAAE,iCAAiC;aACxC,CAAC,CAAC;QACL,CAAC;QAED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,IAAI,CAAC,UAAU,EAAE;gBACnD,KAAK,EAAE,YAAY;gBACnB,OAAO,EAAE,GAAG,IAAI,CAAC,YAAY,4EAA4E;gBACzG,IAAI,EAAE,IAAI,CAAC,YAAY;gBACvB,QAAQ,EAAE,SAAS;gBACnB,IAAI,EAAE,gCAAgC;aACvC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAnEW,QAAA,qBAAqB,yBAmEhC"}
@@ -1,8 +0,0 @@
1
- export * from './schema-validator';
2
- export * from './reference-validator';
3
- export * from './best-practices-validator';
4
- import { ParsedFile } from '../parser';
5
- import { ValidationError } from '../types';
6
- import { CatalogDependencies } from '../config';
7
- export declare const validateCatalog: (parsedFiles: ParsedFile[], dependencies?: CatalogDependencies) => ValidationError[];
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAUhD,eAAO,MAAM,eAAe,GAAI,aAAa,UAAU,EAAE,EAAE,eAAe,mBAAmB,KAAG,eAAe,EAgB9G,CAAC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.validateCatalog = void 0;
18
- __exportStar(require("./schema-validator"), exports);
19
- __exportStar(require("./reference-validator"), exports);
20
- __exportStar(require("./best-practices-validator"), exports);
21
- const schema_validator_1 = require("./schema-validator");
22
- const reference_validator_1 = require("./reference-validator");
23
- const best_practices_validator_1 = require("./best-practices-validator");
24
- const validateCatalog = (parsedFiles, dependencies) => {
25
- const schemaErrors = (0, schema_validator_1.validateAllSchemas)(parsedFiles);
26
- const referenceErrors = (0, reference_validator_1.validateReferences)(parsedFiles, dependencies);
27
- const orphanErrors = (0, reference_validator_1.validateOrphanMessages)(parsedFiles, dependencies);
28
- const deprecatedRefErrors = (0, reference_validator_1.validateDeprecatedReferences)(parsedFiles);
29
- const duplicateErrors = (0, reference_validator_1.validateDuplicateResourceIds)(parsedFiles);
30
- const bestPracticeErrors = (0, best_practices_validator_1.validateBestPractices)(parsedFiles);
31
- return [
32
- ...schemaErrors,
33
- ...referenceErrors,
34
- ...orphanErrors,
35
- ...deprecatedRefErrors,
36
- ...duplicateErrors,
37
- ...bestPracticeErrors,
38
- ];
39
- };
40
- exports.validateCatalog = validateCatalog;
41
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,wDAAsC;AACtC,6DAA2C;AAK3C,yDAAwD;AACxD,+DAK+B;AAC/B,yEAAmE;AAE5D,MAAM,eAAe,GAAG,CAAC,WAAyB,EAAE,YAAkC,EAAqB,EAAE;IAClH,MAAM,YAAY,GAAG,IAAA,qCAAkB,EAAC,WAAW,CAAC,CAAC;IACrD,MAAM,eAAe,GAAG,IAAA,wCAAkB,EAAC,WAAW,EAAE,YAAY,CAAC,CAAC;IACtE,MAAM,YAAY,GAAG,IAAA,4CAAsB,EAAC,WAAW,EAAE,YAAY,CAAC,CAAC;IACvE,MAAM,mBAAmB,GAAG,IAAA,kDAA4B,EAAC,WAAW,CAAC,CAAC;IACtE,MAAM,eAAe,GAAG,IAAA,kDAA4B,EAAC,WAAW,CAAC,CAAC;IAClE,MAAM,kBAAkB,GAAG,IAAA,gDAAqB,EAAC,WAAW,CAAC,CAAC;IAE9D,OAAO;QACL,GAAG,YAAY;QACf,GAAG,eAAe;QAClB,GAAG,YAAY;QACf,GAAG,mBAAmB;QACtB,GAAG,eAAe;QAClB,GAAG,kBAAkB;KACtB,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,eAAe,mBAgB1B"}
@@ -1,15 +0,0 @@
1
- import { ParsedFile } from '../parser';
2
- import { ValidationError } from '../types';
3
- import { CatalogDependencies } from '../config';
4
- interface ResourceIndex {
5
- [resourceType: string]: {
6
- [resourceId: string]: Set<string>;
7
- };
8
- }
9
- export declare const buildResourceIndex: (parsedFiles: ParsedFile[], dependencies?: CatalogDependencies) => ResourceIndex;
10
- export declare const validateReferences: (parsedFiles: ParsedFile[], dependencies?: CatalogDependencies) => ValidationError[];
11
- export declare const validateOrphanMessages: (parsedFiles: ParsedFile[], dependencies?: CatalogDependencies) => ValidationError[];
12
- export declare const validateDeprecatedReferences: (parsedFiles: ParsedFile[]) => ValidationError[];
13
- export declare const validateDuplicateResourceIds: (parsedFiles: ParsedFile[]) => ValidationError[];
14
- export {};
15
- //# sourceMappingURL=reference-validator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference-validator.d.ts","sourceRoot":"","sources":["../../src/validators/reference-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,eAAe,EAAqB,MAAM,UAAU,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAGhD,UAAU,aAAa;IACrB,CAAC,YAAY,EAAE,MAAM,GAAG;QACtB,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;KACnC,CAAC;CACH;AAED,eAAO,MAAM,kBAAkB,GAAI,aAAa,UAAU,EAAE,EAAE,eAAe,mBAAmB,KAAG,aAgDlG,CAAC;AAwMF,eAAO,MAAM,kBAAkB,GAAI,aAAa,UAAU,EAAE,EAAE,eAAe,mBAAmB,KAAG,eAAe,EAsDjH,CAAC;AAGF,eAAO,MAAM,sBAAsB,GAAI,aAAa,UAAU,EAAE,EAAE,eAAe,mBAAmB,KAAG,eAAe,EA0ErH,CAAC;AAGF,eAAO,MAAM,4BAA4B,GAAI,aAAa,UAAU,EAAE,KAAG,eAAe,EA2DvF,CAAC;AAGF,eAAO,MAAM,4BAA4B,GAAI,aAAa,UAAU,EAAE,KAAG,eAAe,EA2BvF,CAAC"}