Skip to content

release: 2.16.1#307

Open
stainless-app[bot] wants to merge 6 commits intomainfrom
release-please--branches--main--changes--next
Open

release: 2.16.1#307
stainless-app[bot] wants to merge 6 commits intomainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Contributor

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

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
Copy link
Contributor Author

stainless-app bot commented Mar 7, 2026

🧪 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
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.

2 participants