-
Notifications
You must be signed in to change notification settings - Fork 8
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
add signRule endpoints #981
base: auto_sign
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job !
Only 2 small comments
And tests are not passing
ruleType: | ||
type: string | ||
enum: | ||
- password_prompt | ||
- auto_sign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't that be a ref to RuleType
?
ruleType: | |
type: string | |
enum: | |
- password_prompt | |
- auto_sign | |
ruleType: | |
$ref: "#/definitions/RuleType" |
// Find the index of the rule to update | ||
index := -1 | ||
|
||
for i, rule := range account.SignRules { | ||
if rule.ID == ruleID { | ||
index = i | ||
break | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be nice to have it in another function as it's also used in DeleteSignRule
No description provided.