chore(swagger): update API documentation annotations

- Change ValidateFile endpoint Accept type from text/plain to json
- Add Route struct name annotation for Swagger documentation
This commit is contained in:
yusing
2026-01-29 10:49:41 +08:00
parent d34b62e2f5
commit 6c6e13704e
2 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ type ValidateFileRequest struct {
// @Summary Validate file
// @Description Validate file
// @Tags file
// @Accept text/plain
// @Accept json
// @Produce json
// @Param type query FileType true "Type"
// @Param file body string true "File content"

View File

@@ -69,7 +69,7 @@ type (
Idlewatcher *types.IdlewatcherConfig `json:"idlewatcher,omitempty" extensions:"x-nullable"`
Metadata `deserialize:"-"`
}
} // @name Route
Metadata struct {
/* Docker only */