spec: hoisted error responses, terse descriptions, curl samples — release v0.12.0 - #41
Merged
Merged
Conversation
…ease v0.12.0 Re-sync from platform #3284 (tight OAS: hoisted error responses, real home-space examples, llms.txt) and #3285 (terse description pass, Scalar curl code samples). Consumer-visible: - No success shape, request body, parameter, security, or schema definition changed. Same 41 operations. - New `ErrorEnvelope` schema; 12 named error responses under `components.responses`; every operation gains a `default` response. - The inline error unions no longer carry the leaked `defined: true|false` discriminator. Error bodies remain `code`, `status`, `message`, `data` with const-narrowed codes. - Snapshot shrinks ~36% from description trimming. Test fixture for the 429 path updated to the documented RateLimited envelope (which now requires `data`). Minor bump per the version rule: additive type surface, pre-1.0. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rpq64ASTsKJ3xc2DVoQMjh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Re-sync of the platform contract from
metalabel-dfos#3284 (tight OAS: hoisted error responses, real home-space examples, llms.txt) and #3285 (terse description pass, Scalar curl code samples). Bumps to v0.12.0.What a consumer notices
ErrorEnvelopeschema, 12 named error responses undercomponents.responses(NotFound,RateLimited,Replayed, …), and every operation gains adefaultresponse typed as the envelope.defined: true | falsediscriminator. It is gone. Error bodies remaincode,status,message,data, withcode/statusconst-narrowed per response. Anyone narrowing on.definedin an error branch would fail to compile.The 429 test fixture is updated to the documented
RateLimitedenvelope (which now requiresdata).Version
Minor per the repo rule: additive type surface, pre-1.0. Tag
v0.12.0to release after merge.Checks
pnpm typecheck,pnpm test,pnpm buildgreen locally;pnpm generateleaves a clean diff.🤖 Generated with Claude Code
https://claude.ai/code/session_01Rpq64ASTsKJ3xc2DVoQMjh