diff --git a/packages/starlight-openapi/components/parameter/Parameter.astro b/packages/starlight-openapi/components/parameter/Parameter.astro index 6afca07..43ecdbe 100644 --- a/packages/starlight-openapi/components/parameter/Parameter.astro +++ b/packages/starlight-openapi/components/parameter/Parameter.astro @@ -5,8 +5,8 @@ import { isParameterWithSchemaObject } from '../../libs/schemaObject' import Content from '../Content.astro' import Items from '../Items.astro' import Key from '../Key.astro' +import Md from '../Md.astro' import Schema from '../schema/Schema.astro' -import Text from '../Text.astro' interface Props { parameter: Parameter @@ -20,12 +20,12 @@ const { parameter } = Astro.props isOpenAPIV2Items(parameter) ? ( <> - {parameter.description} + ) : parameter.content ? ( <> - {parameter.description} + ) : isParameterWithSchemaObject(parameter) ? ( {description}} +{isObject && } {schema && } -{!isObject && {description}} +{!isObject && }