Bot releases are visible (Hide)
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
The main features in this release:
400 Bad Request
by default, if none is specified by the user, enumerating the reasons on why request decoding might fail. This can be turned off or adjusted in OpenAPIDocsOptions
.Thanks to all the contributors for their cooperation, especially @mbore, @kubinio123, @bartekzylinski, @slabiakt, @danielleontiev, @hamnis, @majk-p, @MichalPawlicki, @PawelJ-PL, @endertunc, @ae0n!
SchemaType
s are not objects, but classes. If you specified the schema type manually, instead of e.g. SchemaType.SString
you'll have to use SchemaType.SString()
AkkaServerOptions.customInterceptors
Validator.enum
method has been renamed to Validator.enumeration
, and .derivedEnum
to .derivedEnumeration
, as enum
is now a keyword in Scala3.mapTo(Companion)
is replaced with a macro: .mapTo[CaseClass]
.toDirective
EndpointIO.annotations
, and schema annotations to Schema.annotations
. Instead of derivedEndpointInput
, used EndpointInput.derived
instead()
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)
SchemaType.[SProduct|SCoproduct|SOpenProduct]
DecodeFailureHandler
- minor changes in method signatures, the default one is now DefaultDecodeFailureHandler.handler
LogRequestHandling
-> ServerLog
Codec
is no longer a Mapping
toRoute
-> toRoutes
statusMapping
in favor of oneOfMapping
SObjectInfo
is replaced by SName
; coproducts are more general, as they can include any child schemas (not only objects)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.derived
(#1348) @adamwPublished by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
()
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)
SObjectInfo
is replaced by SName
; coproducts are more general, as they can include any child schemas (not only objects)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.Published by github-actions[bot] over 3 years ago
Some of the modules are now available for Scala3 on the JVM: core, http4s & vertx servers, sttp client, as well as some json and datatypes integrations
Validator.enum
method has been renamed to Validator.enumeration
, and .derivedEnum
to .derivedEnumeration
, as enum
is now a keyword in Scala3.mapTo(Companion)
is replaced with a macro: .mapTo[CaseClass]
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
The generated documentation will now include an entry for 400 Bad Request
by default, if none is specified by the user, enumerating the reasons on why request decoding might fail. This can be turned off od adjusted in OpenAPIDocsOptions
.
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
The main features in this release:
DecodeFailureHandler
- minor changes in method signatures, the default one is now DefaultDecodeFailureHandler.handler
LogRequestHandling
-> ServerLog
AkkaServerOptions.customInterceptors
streamBody
method, instead there are streamBinaryBody
, streamTextBody
, streamListBody
, streamIterableBody
SchemaType
s are not objects, but classes. If you specified the schema type manually, instead of e.g. SchemaType.SString
you'll have to use SchemaType.SString()
SchemaType.[SProduct|SCoproduct|SOpenProduct]
Codec
is no longer a Mapping
Validator.enum
-> Validator.derivedEnum
.toDirective
toRoute
-> toRoutes
statusMapping
in favor of oneOfMapping
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago