Skip to content

Commit baea60b

Browse files
authored
chore(docs): use renderedFieldDescriptions for single as well as multi requests (#5939)
## Short description of the changes made Add `renderedFieldDescriptions` prop to single-request `EndpointRequestSection` usage, matching the existing multiple-requests implementation. ## What was the motivation & context behind this PR? Found inconsistency during migration audit: multiple-request endpoints passed `renderedFieldDescriptions` for form data MDX rendering, but single-request endpoints did not. This meant form data field descriptions (for `file`, `files`, `property` fields) were rendered as plain text instead of MDX for single-request endpoints. ## How has this PR been tested? - Verified no TypeScript/lint errors - Confirmed fix matches existing pattern used in multiple-requests case
1 parent fbcab30 commit baea60b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/fern-docs/bundle/src/components/api-reference/endpoints/EndpointContentLeft.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ export async function EndpointContentLeft({
216216
request={endpoint.requests[0]}
217217
types={types}
218218
lang={lang}
219+
renderedFieldDescriptions={renderFormDataFieldDescriptions(
220+
endpoint.requests[0],
221+
types
222+
)}
219223
PropertyRenderer={PropertyRenderer}
220224
PropertyWithShape={PropertyWithShape}
221225
TypeReferenceDefinitions={TypeReferenceDefinitions}

0 commit comments

Comments
 (0)