From 82a5d35241c84159aecefe284a3a095115f4b787 Mon Sep 17 00:00:00 2001 From: kilavvy <140459108+kilavvy@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:14:52 +0100 Subject: [PATCH] fix: typos in documentation files (#6027) * Update generator.go * Update README.md --- pkg/input/formats/README.md | 4 ++-- pkg/input/formats/openapi/generator.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/input/formats/README.md b/pkg/input/formats/README.md index 3db9cdc15e..0b386080e0 100644 --- a/pkg/input/formats/README.md +++ b/pkg/input/formats/README.md @@ -67,7 +67,7 @@ This module parser Postman Collection JSON files. ### 3. Auth Type Parsing: Able to parse and set the `Authentication` options provided in the postman collection in the request headers. - Supported types of authentiction: + Supported types of authentication: 1. **API Key**: In header 2. **Basic**: Setting basic auth through username, password. @@ -87,4 +87,4 @@ Swagger specification file is converted from OpenAPI 2.0 format to OpenAPI 3.0 f ## Burp XML / Proxify JSONL -These modules are generic and parse raw requests from these respective tools. \ No newline at end of file +These modules are generic and parse raw requests from these respective tools. diff --git a/pkg/input/formats/openapi/generator.go b/pkg/input/formats/openapi/generator.go index e22c078769..6ad8b290c4 100644 --- a/pkg/input/formats/openapi/generator.go +++ b/pkg/input/formats/openapi/generator.go @@ -235,7 +235,7 @@ func generateRequestsFromOp(opts *generateReqOptions) error { // if it is in path then remove it from path opts.requestPath = strings.Replace(opts.requestPath, fmt.Sprintf("{%s}", value.Name), "", -1) if !opts.opts.RequiredOnly { - gologger.Verbose().Msgf("openapi: skipping optinal param (%s) in (%v) in request [%s] %s due to missing value (%v)\n", value.Name, value.In, opts.method, opts.requestPath, value.Name) + gologger.Verbose().Msgf("openapi: skipping optional param (%s) in (%v) in request [%s] %s due to missing value (%v)\n", value.Name, value.In, opts.method, opts.requestPath, value.Name) } continue }