Skip to content

Commit

Permalink
fix: use correct property case for tokenUrl (#134)
Browse files Browse the repository at this point in the history
In the OAS3 "security definitions" validator, the check for the presence of a token url was incorrectly using the casing `tokenURL`, when it should be `tokenUrl`. This resolves that matter
  • Loading branch information
adamaveray committed Feb 7, 2020
1 parent 384af4c commit 4395600
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ module.exports.validate = function({ resolvedSpec }) {
});
}
} else if (flows.password) {
const tokenURL = flows.password.tokenURL;
if (!tokenURL) {
const tokenUrl = flows.password.tokenUrl;
if (!tokenUrl) {
errors.push({
message:
"oauth2 authorization password flow must have required 'tokenUrl' property.",
Expand Down

0 comments on commit 4395600

Please sign in to comment.