Skip to content

Commit 4fb28d1

Browse files
committed
fix: Throw error on missing POST method
1 parent 6bdbc21 commit 4fb28d1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/blueprint.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,10 +677,7 @@ const createEndpoint = async (
677677

678678
const validOperation = validOperations.find(([m]) => m === 'post')
679679
if (validOperation == null) {
680-
// eslint-disable-next-line no-console
681-
console.warn(`No valid post operation found for ${path}`)
682-
683-
return null
680+
throw new Error(`No valid post operation found for ${path}`)
684681
}
685682

686683
const [_, operation] = validOperation

0 commit comments

Comments
 (0)