Skip to content

v1.10.0-alpha.28

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 08 Nov 07:53
· 19 commits to main since this release
f6c17e1

This update expands OpenAPI import and HTTP response support, with stricter preservation of authored contracts and clearer failures before a response is written.

  • Untagged unions: supported oneOf schemas become typed unions, including nullable and nested alternatives. Decoding requires exactly one matching schema and Go value; ambiguous inputs are rejected. Import coverage
  • Multi-file OpenAPI descriptions: resolve local references and explicitly supplied URI mappings, then export one bundled document. The importer never fetches remote URLs, and unresolved references needed by selected operations remain errors. External references
  • Discriminators without lost constraints: preserve mappings, aliases, supported fallback mappings and parent/child relationships without treating discriminator hints as permission to discard schema validation. Discriminators
  • Status-selected responses and SSE metadata: exact statuses, status classes and fallback responses share deterministic selection. Typed informational responses support sending and observing interim metadata; declared 100 Continue is observation-only. SSE handshakes expose status, headers and cookies independently of events. HTTP guide

These additions complement parameter serialization styles and typed durable producer/worker roles, already available in alpha.27.

Regenerate service, client and server packages together. Typed mixed unary/SSE clients now return (result, metadata, error) for unary calls; streaming clients expose metadata through Response(). Review client interceptors that handle those results. HTTP server-stream Close now completes successfully, publishing an unopened handshake even with zero events; check its returned error. Browser EventSource still requires status 200.

Regeneration also adopts checked integer storage conversions and corrected response presence handling. Integer Go storage overrides retain decimal wire values and reject unrepresentable conversions instead of wrapping. Body("field") requires a supplied field on a concrete parent; absent, null and supplied zero values remain distinct. Nullable HTTP/JSON-RPC errors use generated named error constructors. See custom field types and nullable errors.

Re-import affected specifications to recover supported annotations and reference relationships. Invalid examples produce diagnostics; --allow-lossy omits them while preserving their schemas. Named payload/result customization callbacks now execute once, as authored.


Highlights

This alpha is a development snapshot. Generated APIs may change.

  • fix(codegen): omit unreachable union form success returns (f6c17e1)
  • test(http): share the handshake scalar fixture (184a551)
  • docs: keep capability implementation status current (5355b15)
  • test(openapi): isolate consumer npm package roots (e6d783b)
  • test(openapi): inspect exact response selectors in imported designs (fd99fca)
  • test(example): mark JSON-RPC endpoints in hosting fixtures (36d4931)
  • test(cli): preserve server admission and import diagnostic contracts (3525f32)
  • test(openapi): verify published references and prepared annotations (bcd398f)
  • test(http): align generated output with prepared response contracts (2503c81)
  • fix(expr): retain published default values and target ownership (63236c6)
  • test(jsonrpc): align generated response ownership expectations (f15a8a7)
  • test(http): assert final-response and selected-body contracts (17bfa3e)
  • fix(http): reserve MIME imports before allocating service aliases (96c6085)
  • test(openapi): verify prepared annotation ownership across references (7c4c079)
  • test(jsonrpc): assert protocol completion for absent selected responses (b4cb26f)
  • feat(http): add status-selected responses and SSE handshakes (#976) (40187f3)
  • feat(openapi): import discriminator contracts without narrowing schemas (#1005) (cadba28)
  • feat(openapi): resolve and bundle external reference graphs (#957) (3d38657)
  • fix(openapi): pin Vacuum resource-reference corrections (b9e92c7)
  • fix(http): preserve bound field identity in parameter constructors (89f1a09)
  • fix(codegen): unify nullable error and response ownership (e1ac433)
  • fix(http): enforce response body null admission (45e3037)
  • fix(codegen): render nullable error message fields (8525f86)
  • fix(codegen): preserve physical integer storage across transports (8defdb2)
  • fix(openapi): validate examples against completed schema graphs (c2bf298)
  • fix(openapi): preserve nullable response body occurrences (7ffcd34)
  • fix(dsl): run named method customization callbacks once (c010bcb)
  • test(expr): stabilize recursive decode allocation measurement (3c3252e)
  • build: update libopenapi to v0.42.4 (404d868)
  • fix(openapi): reject nonfinite scalar literals during import (823212f)
  • fix(openapi): validate examples against normalized value domains (9e6efee)
  • fix(openapi): normalize empty validation identity (58a02a5)
  • fix(http): derive collection conversions from parameter layouts (dac3510)
  • fix(expr): preserve authored body shape admission (982c578)
  • fix: derive response constructors from prepared body context (7ef0c80)
  • fix: claim SSE failure before encoding errors (6372682)
  • fix: preserve effective body template contracts (a744ae0)
  • fix: preserve absent optional object request bodies (86ddf3e)
  • fix: validate optional form bodies through their selected contract (75ed44e)
  • fix: bind only consumed native multipart values (1a0817a)
  • docs: clarify optional request body contracts (eaeea17)
  • fix: terminate nested multipart encoding branches once (0422de8)
  • test: align corpus expectations with supported HTTP contracts (f482eaf)
  • fix(codegen): preserve native default contracts (5d9c58a)
  • feat(openapi): support complete untagged oneOf contracts (15786bc)

Upgrade

Install the CLI and module at v1.10.0-alpha.28, then regenerate services with loom gen <module-import-path>/design.

Full changelog