Skip to content

feat: expand nested properties for array-of-object fields in the API ref#1247

Merged
dawnho merged 2 commits into
mainfrom
claude/api-ref-array-object-properties
Jul 9, 2026
Merged

feat: expand nested properties for array-of-object fields in the API ref#1247
dawnho merged 2 commits into
mainfrom
claude/api-ref-array-object-properties

Conversation

@dawnho

@dawnho dawnho commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

Teaches the Mintlify object-page codegen to expand the inner properties of an array-of-objects field in the generated API reference. Previously such a field (for example, time_pairs on the time frame option object) rendered only the array field and its description; now it renders an <Expandable> with the item's properties (e.g. display_name, start_time, end_time), matching how object fields already render.

Change

  • mintlify-codegen/lib/layout/object-page.tsbuildField now populates children from a list's itemProperties when itemFormat === 'object' (in addition to the existing format === 'object' case). Mirrors the existing object-children handling and the legacy renderer's itemProperties logic.
  • The regenerated API reference (mintlify-docs/api/**) is produced and committed by the Generate CI job.

Notes / heads-up

  • Broad regen diff: this affects every array-of-object property across all object pages, not just time_pairs, so the CI-generated API-ref diff will be large. This is the intended general fix.
  • The regeneration could not be run in the authoring environment (@seamapi/* deps need GitHub Packages auth); CI is the authoritative generator, so the rendered output should be reviewed once the Generate job runs.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Ts8QgybjiqTo8AUpsuSvb


Generated by Claude Code

Teach the Mintlify object-page codegen to populate a field's children
from an array's itemProperties when the list items are objects (for
example, time_pairs), so the generated API reference shows an
Expandable with the inner properties (display_name, start_time,
end_time) instead of just the array field. Mirrors the existing
object-children handling.

The regenerated API reference output is produced by the Generate CI job.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Ts8QgybjiqTo8AUpsuSvb
@dawnho dawnho requested a review from a team as a code owner July 9, 2026 01:10
@dawnho dawnho merged commit 131ff45 into main Jul 9, 2026
9 checks passed
@dawnho dawnho deleted the claude/api-ref-array-object-properties branch July 9, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants