v0.18.0-M18
github-actions
released this
29 Jun 15:35
·
5297 commits
to master
since this release
Breaking changes
- options for interpreters are now passed as explicit parameters to the interpreters, not as implicit ones to individual methods. If no options are provided, default parameters are used. If you've used default parameters, you'll need to add
()
to the interpreter, as it is now a class, not an object. E.g.AkkaHttpServerInterpreter.toRoutes(endpoints)
becomes:
AkkaHttpServerInterpreter().toRoutes(endpoints)
If you have custom options, you'll need to change code such as:
implicit val options = AkkaHttpServerOptions.customInterceptors(...)
AkkaHttpServerInterpreter.toRoutes(endpoints)
into:
val options = AkkaHttpServerOptions.customInterceptors(...)
AkkaHttpServerInterpreter(options).toRoutes(endpoints)
- schema improvements:
SObjectInfo
is replaced bySName
; coproducts are more general, as they can include any child schemas (not only objects) - enums are referenced by default, there's no
referenceEnums
option in the documentation interpreters. To inline enums, you'll need to define the enum validator without a name, or remove the name from the derived schema.
What’s Changed
- Update json4s-core, json4s-jackson to 4.0.1 (#1344) @scala-steward
- Update magnolia-core to 1.0.0-M4 (#1343) @scala-steward
- Update jsoniter-scala-core, ... to 2.9.0 (#1340) @scala-steward
- fixed docs generation of referenced enums when they're inside of a collection (#1341) @ae0n
- Fix instanceFromValues for case class with defined companion object (#1345) @mbore
- Named schemas (#1339) @adamw
- Missing components for AsyncAPI (#1338) @mbore
- Make authorizationUrl optional (#1342) @dvgica
- Setting options for AkkaHttpServerInterpreter as explicit parameter (#1321) @bartekzylinski
- Update scala3-library to 3.0.1-RC2 (#1334) @scala-steward
- Add test case for status code mappings with empty output with descrip… (#1332) @slabiakt
- Update enumeratum to 1.7.0 (#1331) @scala-steward
- Update client3:akka-http-backend, ... to 3.3.7 (#1330) @scala-steward