Skip to content

Commit 43f8702

Browse files
fix: invert log condition in openapi parser (#827)
This change fixes a bug in logging the chosen OpenAPI parser.
1 parent 900d4cc commit 43f8702

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/mean-shrimps-look.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"server": patch
3+
---
4+
5+
Fixed a bug in logging the chosen OpenAPI parser.

server/internal/openapi/process.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (p *ToolExtractor) Do(
217217
}
218218

219219
var res *ToolExtractorResult
220-
if task.Parser == "speakeasy" {
220+
if task.Parser != "speakeasy" {
221221
logger.ErrorContext(ctx, "unrecognized parser specified: defaulting to speakeasy", attr.SlogDeploymentOpenAPIParser(task.Parser))
222222
}
223223

0 commit comments

Comments
 (0)