Skip to content

Describe the last undocumented fields (drift → 0) - #159

Merged
MrRefactoring merged 8 commits into
masterfrom
develop
Jul 21, 2026
Merged

Describe the last undocumented fields (drift → 0)#159
MrRefactoring merged 8 commits into
masterfrom
develop

Conversation

@MrRefactoring

Copy link
Copy Markdown
Owner

Promotes the last of the schema-drift work to master for release 3.0.2.

What's here

  • The final undocumented fields. After the previous release closed 154 of them, the audit still reported seven: comment / attachment on a version returned inside a versions collection, the count on a like collection's meta, the hyphenated inline-marker-ref / inline-original-selection inline-comment property keys, the async content-body's content, and noAccessEmails on the check-access-by-email response. All are now described, and a live audit run against the tenant reports no drift at all (161 → 0 over the two releases).

  • Changeset describing the above for the changelog.

Five of the seven had a named component to point at; noAccessEmails did not — its response is declared inline on the operation — so the generator side gained a small reusable mechanism for patching inline responses by <method> <path>. That change lives in the generator, not here; this PR is the regenerated output plus its changeset.

Every addition is optional and additive: nothing that used to type-check stops doing so, runtime validation is unchanged, and no field is renamed or removed.

Release note

Once merged, the workflow updates the Version Packages PR to 3.0.2; merging that publishes 3.0.2. This is also the first real exercise of the changeset publish switch — the publish should now tag v3.0.2 and cut its GitHub release on its own.

Closes the uniform half of what the schema audit found: 161 -> 83
undocumented fields, 93 -> 50 endpoints, with the suite still passing.

The `_links` group is gone entirely, and it was the bulk — 61 fields,
57% of all occurrences. v1 declared its links object with no properties
at all while using it for every entity, so `_links.webui` existed at
runtime and nowhere in the types. Now it is typed.

`version.ncsStepVersion` and `version.contributorIds` follow, along with
the `_expandable` keys Confluence has grown since the spec was written.

Types are what the API actually returned. `ncsStepVersion` is nullable
because responses came back null; `contributorIds` keeps an open element
type because every array observed was empty, and a guessed element type
would read as breakage rather than as drift.

79 fields remain, with no shape in common — `ari`, `operations`, the
`container` group, user fields like `locale`. Each needs deciding which
schema owns it, so they are a separate pass.
161 undocumented fields across 93 endpoints down to 7 across 5, with the
suite passing 493/493.

This is the long tail the first pass deliberately left: fields with no
shape in common, each needing a decision about which schema owns it.

`Container` turned out to be a second empty schema, like the links one
before it — declared with no properties at all while naming the parent
of every piece of content. Ten fields, including its own `_links`.

The rest are one-offs: `ari` and `base64EncodedAri`, `accountStatus` and
`locale` across the three separate user schemas that each lag
differently, `resolutionStatus` on comments, `operations` and
`properties` on the newer v2 entities.

Seven remain. Each sits either behind an inline response schema with no
name to target, or behind a collection whose item schema differs from
the single-entity one — both want a proper look rather than a guess, and
the audit will keep reporting them until they get one.
Brings develop up to 3.0.1: the version bump, the cleared changesets, and the
release workflow now publishing via changeset publish. develop matches master.
The remaining seven the schema audit reported: Version's comment/attachment, the like
collection's count, the hyphenated inline-comment property keys, the async
content-body's content, and noAccessEmails on the check-access response. Drift is now 0.
@MrRefactoring
MrRefactoring merged commit 63b6d59 into master Jul 21, 2026
7 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