Skip to content

Commit

Permalink
fix: missing websocket query param descriptions (#1645)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Oct 10, 2024
1 parent 77d1590 commit 0d769cf
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions packages/ui/app/src/api-reference/web-socket/WebSocket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const WebhookContent: FC<WebhookContentProps> = ({ context, breadcrumb, last })
shape={parameter.valueShape}
anchorIdParts={["request", "path", parameter.key]}
slug={node.slug}
description={channel.description}
description={parameter.description}
additionalDescriptions={
ApiDefinition.unwrapReference(parameter.valueShape, types)
.descriptions
Expand All @@ -220,24 +220,28 @@ const WebhookContent: FC<WebhookContentProps> = ({ context, breadcrumb, last })
slug={node.slug}
>
<div className="flex flex-col">
{channel.queryParameters.map((parameter) => (
<div className="flex flex-col" key={parameter.key}>
<TypeComponentSeparator />
<EndpointParameter
name={parameter.key}
shape={parameter.valueShape}
anchorIdParts={["request", "query", parameter.key]}
slug={node.slug}
description={channel.description}
additionalDescriptions={
ApiDefinition.unwrapReference(parameter.valueShape, types)
.descriptions
}
availability={parameter.availability}
types={types}
/>
</div>
))}
{channel.queryParameters.map((parameter) => {
return (
<div className="flex flex-col" key={parameter.key}>
<TypeComponentSeparator />
<EndpointParameter
name={parameter.key}
shape={parameter.valueShape}
anchorIdParts={["request", "query", parameter.key]}
slug={node.slug}
description={parameter.description}
additionalDescriptions={
ApiDefinition.unwrapReference(
parameter.valueShape,
types,
).descriptions
}
availability={parameter.availability}
types={types}
/>
</div>
);
})}
</div>
</EndpointSection>
)}
Expand Down

0 comments on commit 0d769cf

Please sign in to comment.