Skip to content

Commit d8cf820

Browse files
kevinccbsgclaude
andcommitted
chore: bump version to 0.1.3 and add CHANGELOG for oneOf/anyOf error messages
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4e8fa91 commit d8cf820

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.1.3 (2026-04-07)
4+
5+
### Features
6+
7+
- **error messages:** Descriptive oneOf/anyOf error messages. Instead of the generic "does not match any allowed schema", errors now identify the best-matching branch and its specific sub-errors. Supports discriminator-based resolution (e.g., `oneOf matched branch "card" (via discriminator "type"), but: unexpected property`) and best-match fallback (e.g., `anyOf best match (branch 1 of 2) failed: expected number, got string`).
8+
39
## 0.1.2 (2026-04-06)
410

511
### Bug Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openapi-mock-validator",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Validate JSON payloads against OpenAPI 3.0/3.1 specs — catch mock drift before it hits production",
55
"type": "module",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)