Skip to content

Commit

Permalink
finish up spec v3 standard file
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushmau5 committed Dec 4, 2024
1 parent 1ac2437 commit e020529
Show file tree
Hide file tree
Showing 4 changed files with 583 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/helpers/DiffHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function formatDiffOutput(

export function getDocumentMajorVersion(document: any): string {
const asyncapiVersion: string = document.asyncapi;
return asyncapiVersion.split('.').at(0) as string;
return asyncapiVersion.split('.')[0] as string;
}

export function incompatibleDocuments(
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getStandardFromVersion } from './standard';
import categorizeChanges from './categorizeChanges';
import AsyncAPIDiff from './asyncapidiff';
import { mergeStandard } from './mergeStandard';
import { incompatibleDocuments } from 'helpers/DiffHelpers';
import { incompatibleDocuments } from './helpers/DiffHelpers';

/**
* Generates diff between two AsyncAPI documents
Expand Down
2 changes: 1 addition & 1 deletion src/standard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getDocumentMajorVersion } from 'helpers/DiffHelpers';
import { getDocumentMajorVersion } from './helpers/DiffHelpers';
import { standard as v2Standard } from './standards/v2';
import { standard as v3Standard } from './standards/v3';
import { StandardType } from 'types';
Expand Down
Loading

0 comments on commit e020529

Please sign in to comment.