mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-31 18:17:29 +01:00
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:
5
.github/workflows/partial-backend.yaml
vendored
5
.github/workflows/partial-backend.yaml
vendored
@@ -34,3 +34,8 @@ jobs:
|
||||
|
||||
- name: Test
|
||||
run: task go:coverage
|
||||
|
||||
- name: Validate OpenAPI definition
|
||||
uses: swaggerexpert/swagger-editor-validate@v1
|
||||
with:
|
||||
definition-file: backend/app/api/static/docs/swagger.json
|
||||
|
||||
Reference in New Issue
Block a user