Skip to content

Accept the contract 0.9 line - #89

Merged
rasuvaeff merged 1 commit into
masterfrom
chore/allow-the-contract-0-9-line
Sep 6, 2026
Merged

Accept the contract 0.9 line#89
rasuvaeff merged 1 commit into
masterfrom
chore/allow-the-contract-0-9-line

Conversation

@rasuvaeff

Copy link
Copy Markdown
Owner

rasuvaeff/openapi-contract 0.9 settles the three decisions a 1.0 tag would have frozen (openapi-contract#119): Operation::__construct() is @internal, Contract::MAX_DOCUMENT_BYTES/MAX_MESSAGE_BODY_BYTES give way to a Limits object, and CompiledParameter declares its variance. Nothing about how documents compile or how messages are judged changed.

Widened rather than replaced — ^0.8 || ^0.9 — because this suite passes against both lines (709 tests green on released 0.8 and on the contract's master), so pinning it forward would drop support for no reason.

Nothing else needs changing here: the package reads neither removed constant, and the hand-built Operations introduced in #87 still work — @internal is a docblock, and constructing them is the only way this package can reach the generator's refusals now that the compiler rejects malformed documents.

0.9 narrows the contract's public surface — `Operation::__construct()` is
`@internal`, and the byte budgets moved from `Contract::MAX_*` constants to a
`Limits` object — without changing how a document compiles or how a message is
judged. This suite reads neither constant, and its hand-built operations still
work: `@internal` is a docblock, and building them is what this package needs
to reach the generator's refusals at all.

Both lines stay supported rather than replaced, because the suite passes
against both: 709 green on 0.8 and on the contract's master.
@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 610fb18d-af9f-4959-bfb5-46facb45b903

Warning

Your free Security trial is over. An organization admin can upgrade to Advanced for continuous pull request security review or dismiss this notice.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rasuvaeff
rasuvaeff merged commit aa7560e into master Sep 6, 2026
11 checks passed
@rasuvaeff
rasuvaeff deleted the chore/allow-the-contract-0-9-line branch September 6, 2026 16:19
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