Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.18.0 — 2026-09-29

- **Changed.** Requires `rasuvaeff/openapi-contract` `^0.15` (in place of
`^0.13`) so downstream projects can adopt the contract's 0.14/0.15
releases (#137): 0.14 keeps a shared component as one resolution per
document (the local `{$ref: '#/$defs/…'}` form the generator already
unfolds since 0.16.0), 0.15 adds `Contract::validateWebhook()` and per-leaf
body diagnostics — verdicts unchanged. No generator change was needed; the
one test expectation that moved is the formatter rendering of a body
member's `actual` (now printed unless the member path looks like a
credential; wholesale `[redacted]` stays for a whole-body violation at
`$` and a cookie).

## 0.17.0 — 2026-09-20

- **Changed.** Requires `rasuvaeff/property-testing-core` `^1.0` — the
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ before it reaches a transport.

- PHP 8.3 – 8.5
- `ext-mbstring`
- `rasuvaeff/openapi-contract` ^0.13 and `rasuvaeff/property-testing-core` ^1.0
- `rasuvaeff/openapi-contract` ^0.15 and `rasuvaeff/property-testing-core` ^1.0
- `psr/http-message`, `psr/http-factory` and `psr/http-server-handler`
implementations — a PSR-17 factory materializes requests, and `ContractSuite`
drives a PSR-15 handler in process
Expand Down
2 changes: 1 addition & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ styles и JSON, form-urlencoded или multipart request body, после чег

- PHP 8.3 – 8.5
- `ext-mbstring`
- `rasuvaeff/openapi-contract` ^0.13 и `rasuvaeff/property-testing-core` ^1.0
- `rasuvaeff/openapi-contract` ^0.15 и `rasuvaeff/property-testing-core` ^1.0
- реализации `psr/http-message`, `psr/http-factory` и
`psr/http-server-handler`: PSR-17 factory материализует запросы, а
`ContractSuite` гоняет PSR-15 handler в процессе
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.13",
"rasuvaeff/openapi-contract": "^0.15",
"rasuvaeff/property-testing-core": "^1.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion tests/ContractSuiteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function checkFailedRendersEveryViolationAndKeepsTheStructuredResult(): v
' instancePath: "/name"',
' specPointer: "/components/schemas/Pet"',
' expected: {"type":"string"}',
' actual: "[redacted]"', // a body value is redacted wholesale; its member names belong to the application
' actual: null', // a body member renders its actual since openapi-contract 0.15; wholesale redaction stays for a whole-body violation at "$" and a cookie
' message: "bad body"',
]));
Assert::same(strtok($request->getMessage(), "\n"), 'Generated request for operation "pets.get" is invalid before transport');
Expand Down
Loading