Skip to content

Commit

Permalink
fix the rendering of "null" on empty response bodies (#94)
Browse files Browse the repository at this point in the history
* proposal: add extension x-go-type-external for external type references

* convert to x-go-type and allow for custom types in bodies

* remove examples with x-go-type

* introduce the import:[import-name] format to import by specified name without an alias

* fix: schema imports were missing

* add first testing

* fix: old example

* fixed rendering of "null" on empty response body

* removed Content-Type header on responses with no content

* updated generated code

Co-authored-by: tiehm <[email protected]>
  • Loading branch information
tiehm and tiehm authored Jul 28, 2022
1 parent 87926d6 commit 074e08f
Show file tree
Hide file tree
Showing 6 changed files with 250 additions and 50 deletions.
24 changes: 20 additions & 4 deletions examples/petstore-expanded/api/petstore.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions internal/test/components/components.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

120 changes: 100 additions & 20 deletions internal/test/parameters/parameters.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 074e08f

Please sign in to comment.