mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 22:45:28 +00:00
chore: fix some function names in comment (#5586)
Signed-off-by: linchizhen <jiayanbing@yeah.net>
This commit is contained in:
parent
e0b2542868
commit
88b281ae47
@ -300,7 +300,7 @@ func formatTemplate(data string) (string, bool, error) {
|
|||||||
return data, false, errorutil.New("template format failed")
|
return data, false, errorutil.New("template format failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
// lintTemplateData lints template data using templateman lint api
|
// lintTemplate lints template data using templateman lint api
|
||||||
func lintTemplate(data string) (bool, error) {
|
func lintTemplate(data string) (bool, error) {
|
||||||
resp, err := retryablehttp.DefaultClient().Post(fmt.Sprintf("%s/lint", tmBaseUrl), "application/x-yaml", strings.NewReader(data))
|
resp, err := retryablehttp.DefaultClient().Post(fmt.Sprintf("%s/lint", tmBaseUrl), "application/x-yaml", strings.NewReader(data))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@ -416,7 +416,7 @@ schemaLabel:
|
|||||||
return globalParams, nil
|
return globalParams, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// generateExampleFromSchema generates an example from a schema object
|
// GenerateParameterFromSecurityScheme generates an example from a schema object
|
||||||
func GenerateParameterFromSecurityScheme(scheme *openapi3.SecuritySchemeRef) (*openapi3.Parameter, error) {
|
func GenerateParameterFromSecurityScheme(scheme *openapi3.SecuritySchemeRef) (*openapi3.Parameter, error) {
|
||||||
if !generic.EqualsAny(scheme.Value.Type, "http", "apiKey") {
|
if !generic.EqualsAny(scheme.Value.Type, "http", "apiKey") {
|
||||||
return nil, errorutil.NewWithTag("openapi", "unsupported security scheme type (%s) found in openapi file", scheme.Value.Type)
|
return nil, errorutil.NewWithTag("openapi", "unsupported security scheme type (%s) found in openapi file", scheme.Value.Type)
|
||||||
|
|||||||
@ -121,7 +121,7 @@ func NewInputProvider(opts InputOptions) (InputProvider, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SupportedFormats returns all supported input formats of nuclei
|
// SupportedInputFormats returns all supported input formats of nuclei
|
||||||
func SupportedInputFormats() string {
|
func SupportedInputFormats() string {
|
||||||
return "list, " + http.SupportedFormats()
|
return "list, " + http.SupportedFormats()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user