You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
schema: Schema.default moved from a member to an extension in io.github.bbasinsk.schema. Files outside that package must import io.github.bbasinsk.schema.default, and callers must recompile. Generic callers of Schema.default(t) need T : Any.
http: the Response.success, Response.error and Response.streaming* companion factories are removed. In a handler, call success(...), error(...) or streaming*(...) without the Response prefix. HttpEndpoint.handle now has a ResponseScope<Error, Output> receiver; run a handler with HttpEndpoint.respond(request).
published libraries and the OpenAPI Gradle plugin now target Java 21. Consumers need JDK 21 or later, including the Gradle daemon that loads the plugin.
Features
http: type handler responses to the endpoint (#150) (54cbb7c)
schema: allow one .optional() or .default() per schema (#153) (9809207)
Bug Fixes
http: keep error(value) unambiguous when the endpoint error type is Any? (#151) (a503745)
openapi: mark union schemas as type object (#152) (4474964)
schema: state .default() values in OpenAPI and Avro (#154) (8161006)
schema: state optional and default fields correctly in OpenAPI and Avro (#142) (9ae5ae5)
Build System
compile with JDK 21 and keep Java 17 bytecode (#148) (827d733)