Skip to content

release: 2.16.1#307

Merged
stainless-app[bot] merged 6 commits into
mainfrom
release-please--branches--main--changes--next
Mar 11, 2026
Merged

release: 2.16.1#307
stainless-app[bot] merged 6 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app

@stainless-app stainless-app Bot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

Automated Release PR

2.16.1 (2026-03-11)

Full Changelog: v2.16.0...v2.16.1

Bug Fixes

  • client: correct "exactly one" check in JSON schema validator (#309) (6e58ba9)
  • tests: declare baseUrl field in RetryingHttpClientTest (#1003) (4546f83)

Chores

  • internal: codegen related update (7a3a942)
  • internal: codegen related update (a293049)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

@stainless-app stainless-app Bot requested a review from a team as a code owner March 7, 2026 15:07
@stainless-app

stainless-app Bot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

🧪 Testing

To try out this version of the SDK:

Add the following URL as a Maven source: 'https://pkg.stainless.com/s/anthropic-java/4546f832613b67f80990c2f85ff2b62e7187f872/mvn'

Expires at: Thu, 09 Apr 2026 18:15:56 GMT
Updated at: Tue, 10 Mar 2026 18:15:56 GMT

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch 2 times, most recently from 49aae81 to ac8885e Compare March 9, 2026 05:25
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from ac8885e to 8ce2b91 Compare March 9, 2026 17:00
* fix: correct "exactly one" check in JSON schema validator

The validation that ensures exactly one of `type`, `anyOf`, or `$ref`
is present in a schema node used chained XOR operations:
`a.xor(b).xor(c)`. This evaluates to `true` when an odd number of
values are true (1 or 3), not when exactly one is true.

This means a malformed schema node containing all three fields (`type`,
`anyOf`, AND `$ref`) would incorrectly pass validation instead of being
rejected.

Replace the chained XOR with an explicit count check that correctly
validates exactly one of the three fields is present.

* chore: format

---------

Co-authored-by: Tomer Aberbach <tomer@stainless.com>
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch 2 times, most recently from 743eaa2 to 1c303f3 Compare March 10, 2026 05:19
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 1c303f3 to 6c7cd93 Compare March 10, 2026 14:41
Four new test methods added in the latest codegen update reference
`baseUrl` as a class-level variable, but it was only available inside
the `TestBackend` inner class. Store `wmRuntimeInfo.httpBaseUrl` in a
`lateinit var baseUrl` field during `beforeEach` so the tests compile.

Co-authored-by: Claude Code (${CLAUDE_PROJECT_DIR}) <noreply@anthropic.com>
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 6c7cd93 to ea88a4f Compare March 10, 2026 18:12
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from ea88a4f to c9f48e4 Compare March 11, 2026 05:19
@stainless-app stainless-app Bot merged commit cb2f646 into main Mar 11, 2026
8 checks passed
@stainless-app

stainless-app Bot commented Mar 11, 2026

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants