Skip to content

Commit

Permalink
fix implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Sep 28, 2023
1 parent b002b14 commit 70586bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1,069 deletions.
4 changes: 2 additions & 2 deletions helpers/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs from 'fs';
import ReactDOMServer from 'react-dom/server';
import fetch from 'sync-fetch';
import AsyncApiComponent, { hljs } from '@asyncapi/react-component';
import { AsyncAPIDocumentInterface } from '@asyncapi/parser';
import { AsyncAPIDocumentInterface, stringify } from '@asyncapi/parser';

function isJsonObject(o) {
return o && typeof o === 'object' && !Array.isArray(o);
Expand Down Expand Up @@ -133,7 +133,7 @@ export function includeFile(pathFile) {
* and annotates that specification is parsed.
*/
export function stringifySpec(asyncapi) {
return JSON.stringify(asyncapi.json());
return stringify(asyncapi);
}

/**
Expand Down
Loading

0 comments on commit 70586bb

Please sign in to comment.