Commit ef2a44d
Do not document undocumented APIs (#1266)
* fix: strip internal x-undocumented fields from Mintlify OpenAPI spec
The transform pipeline only filtered operation-level x-undocumented,
removing whole undocumented paths. Schema-level markers leaked through:
the internal `sync` field (tagged `x-undocumented: "Only used
internally."`) shipped into the published spec as both a request-body
property and a query parameter on delete endpoints.
Add a recursive pass over the whole spec that removes any property or
parameter bearing x-undocumented (and drops it from sibling `required`),
covering request bodies, parameters, and response schemas across all HTTP
methods -- not just the `post` operations the existing loop touches.
Policy for x-draft: keep the annotated node, consistent with the existing
operation-level policy of keeping x-draft paths in the navigation, but
strip the x-draft marker key so internal notes ("Early access.", "Needs
review.") do not ship. No downstream code reads either marker.
Verified against the current generated openapi.json: 88 x-undocumented
and 18 x-draft markers reduced to 0, the internal `sync` field removed
from both bodies and params, and unmarked siblings preserved.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D5RzvZ86DxrMzBKyhhEDaW
* ci: Generate docs
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Seam Bot <seambot@getseam.com>1 parent 7909baa commit ef2a44d
3 files changed
Lines changed: 86 additions & 1034 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
276 | 336 | | |
277 | 337 | | |
278 | 338 | | |
| |||
353 | 413 | | |
354 | 414 | | |
355 | 415 | | |
| 416 | + | |
356 | 417 | | |
357 | 418 | | |
358 | 419 | | |
| |||
485 | 546 | | |
486 | 547 | | |
487 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
488 | 554 | | |
489 | 555 | | |
490 | 556 | | |
| |||
571 | 637 | | |
572 | 638 | | |
573 | 639 | | |
| 640 | + | |
574 | 641 | | |
0 commit comments