Skip to content

[scala-sttp4-jsoniter] bump Scala to 3.3.9, sttp to 4.0.27, jsoniter-scala to 2.42.0 - #25447

Merged
wing328 merged 1 commit into
OpenAPITools:masterfrom
reynaldjoabet:scala-sttp4-jsoniter-scala-3.3.9-bump-dependencies
Oct 28, 2026
Merged

wing328 merged 1 commit into
OpenAPITools:masterfrom
reynaldjoabet:scala-sttp4-jsoniter-scala-3.3.9-bump-dependencies

Conversation

@reynaldjoabet

@reynaldjoabet reynaldjoabet commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

[scala-sttp4-jsoniter] bump Scala to 3.3.9, sttp to 4.0.27, jsoniter-scala to 2.42.0

  • Scala 3.3.8 -> 3.3.9 in the generated build.sbt
  • sttp client 4.0.26 -> 4.0.27 (sttpClientVersion option default)
  • jsoniter-scala 2.40.1 -> 2.42.0 (jsoniterVersion option default, applied to the generated build.sbt's core/macros/circe artifacts)
  • sbt 1.13.0 -> 1.13.1 in the generated project's build.properties
  • sbt-scalafmt 2.5.6 -> 2.6.2 and scalafmt 3.10.6 -> 3.11.5
  • scalafmt runner.dialect scala213 -> scala3, since the generated code is Scala 3 and the scala213 dialect could not parse it
  • use the Scala 3 vararg splice xs* instead of xs: _* in api.mustache

sttp stays on the 4.0.x line: 4.1.0 is built with Scala 3.9 and cannot be consumed from Scala 3.3 LTS. Docs and the petstore sample updated to match.

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

Summary by cubic

Bumps the dependency defaults and generated project versions for the scala-sttp4-jsoniter client, and updates generated code to Scala 3 vararg syntax.

  • Scala bumps: 3.3.8 → 3.3.9, sttp 4.0.26 → 4.0.27, jsoniter-scala 2.40.1 → 2.42.0, sbt 1.13.0 → 1.13.1, sbt-scalafmt 2.5.6 → 2.6.2, scalafmt 3.10.6 → 3.11.5.
  • The scalafmt runner dialect switches from scala213 to scala3; the old dialect could not parse the generated Scala 3 code.
  • Generated query params now use the Scala 3 vararg splice xs* instead of the removed Scala 2 syntax xs: _*.
  • sttp stays on 4.0.x: 4.1.0 is built with Scala 3.9 and cannot be consumed from Scala 3.3 LTS.
  • Docs and the petstore sample are updated to match the new defaults.

Written for commit eb2459e. Summary will update on new commits.

View guided diff

…scala to 2.42.0

- Scala 3.3.8 -> 3.3.9 in the generated build.sbt
- sttp client 4.0.26 -> 4.0.27 (sttpClientVersion option default)
- jsoniter-scala 2.40.1 -> 2.42.0 (jsoniterVersion option default, applied to
  the generated build.sbt's core/macros/circe artifacts)
- sbt 1.13.0 -> 1.13.1 in the generated project's build.properties
- sbt-scalafmt 2.5.6 -> 2.6.2 and scalafmt 3.10.6 -> 3.11.5
- scalafmt runner.dialect scala213 -> scala3, since the generated code is
  Scala 3 and the scala213 dialect could not parse it
- use the Scala 3 vararg splice `xs*` instead of `xs: _*` in api.mustache

sttp stays on the 4.0.x line: 4.1.0 is built with Scala 3.9 and cannot be
consumed from Scala 3.3 LTS. Docs and the petstore sample updated to match.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 14 files

View guided diff | Re-trigger cubic

@wing328
wing328 merged commit bed9047 into OpenAPITools:master Oct 28, 2026
24 checks passed
@wing328 wing328 added this to the 7.27.0 milestone Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants