Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openapi: Fix logic for labeling unauthenticated/sudo paths #19600

Merged
merged 7 commits into from
Mar 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use exact path
  • Loading branch information
averche committed Mar 16, 2023
commit aa3b8ef6e9ab2d57b23d4ab06171f245f007b698
4 changes: 2 additions & 2 deletions sdk/framework/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ func documentPath(p *Path, specialPaths *logical.Paths, requestResponsePrefix st
Description: cleanString(p.HelpSynopsis),
}

pi.Sudo = sudoPaths.HasPath(path)
pi.Unauthenticated = unauthPaths.HasPath(path)
pi.Sudo = sudoPaths.HasExactPath(path)
pi.Unauthenticated = unauthPaths.HasExactPath(path)
pi.DisplayAttrs = p.DisplayAttrs

// If the newer style Operations map isn't defined, create one from the legacy fields.
Expand Down