Skip to content

Commit

Permalink
Fix semantic method priority order
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Oct 14, 2024
1 parent c6a690e commit 8f9e78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/blueprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ export const getSemanticMethod = (methods: Method[]): Method => {
return methods[0]!
}

const priorityOrder: Method[] = ['PUT', 'PATCH', 'POST', 'GET', 'DELETE']
const priorityOrder: Method[] = ['PUT', 'PATCH', 'GET', 'DELETE', 'POST']

for (const method of priorityOrder) {
if (methods.includes(method)) {
Expand Down

0 comments on commit 8f9e78f

Please sign in to comment.