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