From b97ccb8d38a8ebb932fad24371c55462f915b36e Mon Sep 17 00:00:00 2001 From: Benjamin Kearns Date: Fri, 21 Jul 2023 20:07:29 +1200 Subject: [PATCH 1/2] Fix Swagger generation --- pkg/project/request_model_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/project/request_model_api.go b/pkg/project/request_model_api.go index 93f8718..762cd4c 100644 --- a/pkg/project/request_model_api.go +++ b/pkg/project/request_model_api.go @@ -409,7 +409,7 @@ func GetRequestPartialData(w http.ResponseWriter, r *http.Request, db *gorm.DB) // @Produce text/text // @Security ApiKeyAuth // @Param guid path string true "Request GUID" -// @Param highlight query false true "Syntax Highlight Req/Resp" +// @Param highlight query bool true "Syntax Highlight Req/Resp" // @Param max_highlight_length query int false "Maximum length of data to highlight (in bytes, default is 50KB)" // @Success 200 {object} project.RequestResponseContents // @Failure 500 {string} string Error From 99c0d4e4a00a1b5b084164ae86a2af49d1d25cbb Mon Sep 17 00:00:00 2001 From: Benjamin Kearns Date: Sat, 22 Jul 2023 11:48:13 +1200 Subject: [PATCH 2/2] Show the features in the documentation --- assets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets.go b/assets.go index abc2d15..b5992e9 100644 --- a/assets.go +++ b/assets.go @@ -14,7 +14,7 @@ var CyberChefDir embed.FS //go:embed api/swagger.json var SwaggerJSON string -//go:embed docs/pakiki-documentation/*.md docs/pakiki-documentation/*.html docs/pakiki-documentation/_media/* docs/pakiki-documentation/getting_started/* docs/pakiki-documentation/workflows/* +//go:embed docs/pakiki-documentation/*.md docs/pakiki-documentation/*.html docs/pakiki-documentation/_media/* docs/pakiki-documentation/getting_started/* docs/pakiki-documentation/workflows/* docs/pakiki-documentation/features/* var DocsDir embed.FS //go:embed third_party/highlight.min.js