Tags: realdecisions/oapi-codegen
Tags
Fix: Generate models for all JSON media types As highlighted in oapi-codegen#1168, we have some cases where JSON-compatible media types aren't having their respective models generated, as we previously only looked for `application/json`. To resolve this, we can make sure that any media types that are compatible with JSON (via our utility method) can have their types generated. This is a fix for oapi-codegen#1168, which could also be deemed a feature. However, as this has broken in the upgrade from v1.12.x to v1.13.x, this is being treated as a feature. Closes oapi-codegen#1168.
fix: correct marshalling for alternative JSON types (+json) for stric… …t servers (oapi-codegen#1171) Closes oapi-codegen#1168
Bump github.com/go-chi/chi/v5 from 5.0.8 to 5.0.10 (oapi-codegen#1162) Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.0.8 to 5.0.10. - [Release notes](https://github.com/go-chi/chi/releases) - [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md) - [Commits](go-chi/chi@v5.0.8...v5.0.10) --- updated-dependencies: - dependency-name: github.com/go-chi/chi/v5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Feat: Add Fiber server support (oapi-codegen#813) * Revert generated * Add to cmd * Add to codegen * Fiber * Fix imports * Templates * Split types and code * Rename aliases * Strict * tests * Validate middleware * Templates * Update petstore * Generate * Generate * Readme * Fix tests * Fix build * tweaks to get it running * fixed linter errors, even though other servers seem to just ignore these * Fix option yaml * Fix tests * Mod tidy * Remove extra space * Check errors * Update pkg/fiber-middleware/oapi_validate_test.go Co-authored-by: leonklingele <git@leonklingele.de> * Update pkg/fiber-middleware/oapi_validate_test.go Co-authored-by: leonklingele <git@leonklingele.de> * Update pkg/fiber-middleware/oapi_validate_test.go Co-authored-by: leonklingele <git@leonklingele.de> * Update pkg/fiber-middleware/oapi_validate_test.go Co-authored-by: leonklingele <git@leonklingele.de> * Update pkg/fiber-middleware/oapi_validate_test.go Co-authored-by: leonklingele <git@leonklingele.de> * Separate oapi-codegen imports * Use t.Helper() * fixing comments * Sort imports * Use WriteString * Fix imports * Mods * Generate * Add missing config * Use new adaptor * Use new adaptor * Fix compilation and test issues - Update modules - Add missing test handler - Fix variable naming in strict server wrappers --------- Co-authored-by: Carl Bring <111354161+gnirb@users.noreply.github.com> Co-authored-by: leonklingele <git@leonklingele.de> Co-authored-by: marcinromaszewicz <marcinromaszewicz@deepmap.ai>
Merge pull request oapi-codegen#881 from KenxinKun/fix-unsanitised-te… …mplate Fixes missing unsanitised templates
Fix error handler for required query parameters (oapi-codegen#857)
Fix bug in oneOf not propagating external references (oapi-codegen#729)
PreviousNext