diff --git a/docusaurus/video/docusaurus/docs/api/_common_/CallEventModels.jsx b/docusaurus/video/docusaurus/docs/api/_common_/CallEventModels.jsx index 15acf29f..80a7ef50 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/CallEventModels.jsx +++ b/docusaurus/video/docusaurus/docs/api/_common_/CallEventModels.jsx @@ -22,19 +22,23 @@ const CallEventModels = () => { - - - - {events.map((event) => ( - - + + - ))} + + + {events.map((event) => ( + + + + + ))} +
NameDescription
- - {event.type} - - {event.description}NameDescription
+ + {event.type} + + {event.description}
{ - - const models = React.useMemo(() => { - if (!modelName && !modelFilter) { - return []; - } - return parseModel({modelName, modelFilter, recursive, apiJson}); - }, [modelName, modelFilter]); - +const OpenApiModels = ({ + modelName, + modelFilter, + recursive = true, + apiJson, +}) => { + const models = parseModel({ modelName, modelFilter, recursive, apiJson }); return (
{models.map((model) => ( @@ -25,17 +23,34 @@ const OpenApiModels = ({ modelName, modelFilter, recursive = true, apiJson }) => - {model.properties.map(p => { + {model.properties.map((p) => { return ( {p.name} - {p.type.definitionLink ? {p.type.formattedName} : {p.type.formattedName}} + {p.type.definitionLink ? ( + + {p.type.formattedName} + + ) : ( + {p.type.formattedName} + )} + + + {p.description || '-'} + + + {p.constraints.join(', ') || '-'} - {p.description || '-'} - {p.constraints.join(', ') || '-'} ); })}