Improve swagger generation (#370)

* Improve swagger generation

These issues are causing ogen-api to fail after I used the swagger
converter.

* Specify multipart/form-data routes

Operations with parameters of "type: file" must include "multipart/form-data" in their "consumes" property

* Fix example usage

* fixup! Specify multipart/form-data routes

* Fix final validation errors
This commit is contained in:
Mike Kusold
2024-12-08 16:11:21 -07:00
committed by GitHub
parent 2d2e3fe891
commit 5f63c5f738
8 changed files with 15 additions and 8 deletions

View File

@@ -28,7 +28,6 @@ tasks:
- "./backend/internal/data/**"
- "./backend/internal/core/services/**/*"
- "./backend/app/tools/typegen/main.go"
typescript-types:
desc: Generates typescript types from swagger definition
cmds: