Skip to content

Commit

Permalink
Warn for missing openApiOperationId
Browse files Browse the repository at this point in the history
  • Loading branch information
thim81 committed Oct 30, 2024
1 parent a4a00bc commit 60a76bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Portman.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ export class Portman {
const uniqueOperationIds = Array.from(new Set(track.openApiOperationIds))
const uniqueOperations = Array.from(new Set(track.openApiOperations))

if (uniqueOperationIds.length > 0 || uniqueOperations.length === 0) {
if (uniqueOperationIds.length > 0 || uniqueOperations.length > 0) {
console.log(
chalk.yellow(`WARNING: The following targets are missing from the OpenAPI specification.`)
)
Expand Down

0 comments on commit 60a76bb

Please sign in to comment.