Releases: discord-gophers/goapi-gen
v0.3.0
v0.2.2
v0.2.1
You can now reference external types (like github.com/google/uuid.UUID
extremely simply within x-go-type
, and also alias those!)
Excellent work @tiehm, sorry for the git mess 💀
What's Changed
Full Changelog: v0.2.0...v0.2.1
v0.2.0
Huge thanks to all new contributors (and existing ones too 👀).
Notable change are the generated handler's signature, which now return a *Response
directly, better error handling on our part, and default errors respecting content-type!
What's Changed
- Unmarshaling string to enum produces empty value by @dustin-decker in #72
- Update README.md - Fix dead link by @Karitham in #73
- Add Error Response Content Type customization options by @adammparker in #75
- Add ParamName into certain Errors by @diamondburned in #78
- Require handlers to return *Response directly by @diamondburned in #80
- Implement x-go-optional-value, x-go-string by @diamondburned in #82
- fix(codegen): required param error implementation by @Karitham in #83
- Remove use of fmt.Errorf in generated code by @Karitham in #87
- feat: make status code public in generated code by @Karitham in #86
- refactor: directory structure by @Karitham in #88
- fix(readme): formatting by @Karitham in #90
- Use flag in README example by @jolheiser in #91
- refactor: middleware by @Karitham in #89
- spelling correction by @loudddd in #92
New Contributors
- @dustin-decker made their first contribution in #72
- @adammparker made their first contribution in #75
- @diamondburned made their first contribution in #78
- @loudddd made their first contribution in #92
Full Changelog: v0.1.1...v0.2.0
v0.1.0: Initial Server Release
v0.1.0 is the first release since the hard fork from
oapi-codegen!
This change has a number of changes that were made, designed to improve the
core quality of life.
Note: The client is still largely unchanged, and plans to be majorly
refactored in the future. Please use with caution!
Release notes:
Features:
Feature list is sorted in order of importance.
-
Remove echo output target (#14).
-
Implement Bind and Render (#47). This change uses
go-chi/render. -
Move to struct-based enum types (#50).
-
Move
x-goapi-*
tox-go
(#40). -
Fix binding for DeepObject (#28).
-
Add panics for incorrect handlers on handler creation, instead of silently
failing (#46). -
Implement proper PascalCase and CamelCase for types with initialisms (#27).
-
Generate Response types for each response method type and version (#47).
-
Add --initialisms. (#54).
-
Don't make optional array types pointers to arrays. (#56).
-
Give better error messages when an unsupported OAPI Spec version is
encountered.
Of course, there are numerous other things that were also changed between the
latest version of oapi-codegen
(as of speaking) and this release. This is
just the important bits :).