New Features
This release adds native support for Server-Sent Events to Goa.
- Read the initial proposal
- Run the monitor example
Additionally this release changes how Goa generated OpenAPI specification examples for aliased primitive types.
Previously each attribute using such types would have to redefine examples. Goa now uses the type example
by default for all attributes of that type.
Minor Improvements
- Goa generated code now satisfies the latest
staticcheck
rules - Better design error message in case of invalid use of the
Payload
DSL function
Bug Fixes
- Fixes in how newlines are generated (added missing newlines and removed extra newlines)
- The HTTP code generated for
SkipResponseBodyEncodeDecode
does not explicitly write a HTTP status
code anymore. The behavior should be backwards compatible (the Go stdlib package will generate
a 200 OK status if none was written) but makes it possible for user code to write any appropriate
status code.
What's Changed
- Fix warning QF1004 of staticcheck by @mamo3gr in #3684
- Properly propagate alias types user examples by @raphael in #3685
- Use eval.InvalidArgError() to dsl.Payload() by @tchssk in #3689
- Always end template files in a newline by @MichaelUrman in #3687
- Update linter configuration and fix linting issues by @raphael in #3694
- Do not write HTTP headers with SkipResponseBodyEncodeDecode by @raphael in #3695
- SSE Support by @raphael in #3697
New Contributors
Full Changelog: v3.20.1...v3.21.0