Skip to content

Commit

Permalink
fix: update overlapping REST path warning (#7276)
Browse files Browse the repository at this point in the history
Update warning message when creating overlapping REST API paths
  • Loading branch information
edwardfoyle authored May 7, 2021
1 parent 01de5a1 commit 3fc7534
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ async function askPaths(context, answers, currentPath) {
await inquirer.prompt({
name: 'isOverlappingPathOK',
type: 'confirm',
message: `This path ${lowerOrderPath} is overlapping with ${higherOrderPath}. ${higherOrderPath} is going to catch all requests from ${lowerOrderPath}. Are you sure you want to continue?`,
message: `The path ${lowerOrderPath} overlaps with ${higherOrderPath}. Users authorized to access ${higherOrderPath} will also have access to ${lowerOrderPath}. Are you sure you want to continue?`,
default: false,
})
).isOverlappingPathOK;
Expand Down

0 comments on commit 3fc7534

Please sign in to comment.