Skip to content

Commit

Permalink
bunch of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Sep 28, 2023
1 parent dfb421e commit c8b8d8c
Show file tree
Hide file tree
Showing 5 changed files with 17,454 additions and 6,910 deletions.
5 changes: 2 additions & 3 deletions helpers/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function includeFile(pathFile) {
* and annotates that specification is parsed.
*/
export function stringifySpec(asyncapi) {
return stringify(asyncapi);
return JSON.stringify(asyncapi.json());
}

/**
Expand All @@ -155,8 +155,7 @@ export function stringifyConfiguration(params) {
export function renderSpec(asyncapi, params) {
loadLanguagesConfig();
const config = prepareConfiguration(params);
const stringified = stringify(asyncapi);
const stringified = stringifySpec(asyncapi);
const component = <AsyncApiComponent schema={stringified} config={config}/>;
//const component = <></>
return ReactDOMServer.renderToString(component);
}
Loading

0 comments on commit c8b8d8c

Please sign in to comment.