Skip to content

prod - #209

Merged
tbantle22 merged 4 commits into
prodfrom
dev
Sep 11, 2026
Merged

prod#209
tbantle22 merged 4 commits into
prodfrom
dev

Conversation

@tbantle22

Copy link
Copy Markdown
Collaborator

No description provided.

tbantle22 and others added 4 commits September 11, 2026 10:10
Re-vendors specs/hosted-v1.yaml from ld main (a719c78de58). dolthub-v2.yaml is
unchanged there, so v2 is untouched.

  GET /deployments/{owner}/{deployment}/metrics            listDeploymentMetrics
  GET /deployments/{owner}/{deployment}/metrics/{metric}   getDeploymentMetric

plus Metric, MetricData, and MetricSeries. Deployment goes from 14 endpoints to
16 and models.md from 34 schemas to 37. Both are Deployment-tagged, so no new
page or nav entry.

The overview needed one correction beyond the two table rows. Its pagination
section lists the endpoints that return a list whole rather than paging it, and
the metrics catalogue is a third: it takes no page_token, since a deployment
collects on the order of ten metrics. The bidirectional case, log retrieval, is
unaffected.

Nothing in the long-running or errors sections changes — both metrics endpoints
are plain synchronous reads.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three things the specs declared that the generated pages dropped. All are in the
shared renderer, so both APIs pick them up.

Array item types. A property whose items are a $ref rendered as bare `array`,
with nothing to click: MetricData.series is a MetricSeries[], DeploymentConfig
.settings a ConfigSetting[], and on v2 SqlQueryResult.columns a QueryColumn[].
The item type was being lost before the renderer saw it — models are deref'd on
the way in, which flattens items.$ref into the anonymous object underneath. The
raw schema is now threaded alongside the deref'd one, the same trick the
parameter tables already used for enums, and a typeCell() helper renders both:
$ref item types as links, primitive ones as `string[]`.

The same helper picks up property $refs that had been flattened to their base
type — v2's ErrorCode, OperationStatus, ImportFileType, BranchRef and friends,
and hosted's CloudProvider and ClusterType — and JSON Schema union types, which
3.1 writes as a list: MetricSeries.values is (number | null)[], not `array`.
Those pipes are escaped, since every one of these lands in a table cell.

Object-level constraints. minProperties/maxProperties describe the object as a
whole, so no per-field Required cell can express them. ExposeServiceRequest is
min 1/max 1 — exactly one of remotesapi or mcp — but its table showed both as
not required, which reads as "neither is needed". They now render as a line
under the table, in request bodies and on the models page both.

Extra request examples. Only one authored example per operation was rendered,
and it was the one curl already shows. The second is usually the one carrying an
idiom the first cannot: patchDeploymentConfig's null to clear an override,
exposeDeploymentService's off switch. Those now follow the curl block.

A discriminated union of inline objects keeps rendering as `object`, which is
all v2's CreateBranchRequest.from can honestly be called; a union of $refs would
render as linked alternatives.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Pick up the metrics endpoints from ld main
…nstraints-examples

Carry item types, object constraints, and extra examples into the tables
@tbantle22
tbantle22 merged commit b813d57 into prod Sep 11, 2026
10 checks passed
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.

1 participant