import { sample } from '@har-sdk/openapi-sampler' import { CodeBlock } from '~/features/ui/CodeBlock/CodeBlock' import { Tabs, TabPanel } from '~/features/ui/Tabs' type IParamProps = any const ApiSchema = ({ schema, id }: IParamProps) => { let example: string | undefined try { example = sample(schema, { skipReadOnly: true, quiet: true }) } catch { example = undefined } return ( {example && (
{JSON.stringify(example, null, 2)}
)}
{JSON.stringify(schema, null, 2)}
) } export default ApiSchema