From 4f21867b03d88eb532f5dca3e6d5fede25b582ad Mon Sep 17 00:00:00 2001 From: "v.razuvaev" Date: Sun, 6 Sep 2026 19:13:33 +0300 Subject: [PATCH] Accept the contract 0.9 line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- CHANGELOG.md | 5 +++++ composer.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb18e9b..e589891 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +- **Changed.** Accepts `rasuvaeff/openapi-contract` `^0.9` alongside `^0.8`. + 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 documents compile or how messages are + judged, so this suite passes against both lines and both stay supported. - **Changed.** Requires `rasuvaeff/openapi-contract` `^0.8`. That release refuses documents 0.7 accepted — an unreadable subschema, a parameter declared twice, a boolean written as a string — and reads several things diff --git a/composer.json b/composer.json index 31a50fe..3b5e881 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "psr/http-factory": "^1.1", "psr/http-message": "^1.1 || ^2.0", "psr/http-server-handler": "^1.0", - "rasuvaeff/openapi-contract": "^0.8", + "rasuvaeff/openapi-contract": "^0.8 || ^0.9", "rasuvaeff/property-testing-core": "^0.5 || ^0.6" }, "require-dev": {