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

add signRule endpoints #981

Draft
wants to merge 1 commit into
base: auto_sign
Choose a base branch
from
Draft

add signRule endpoints #981

wants to merge 1 commit into from

Conversation

peterjah
Copy link
Contributor

@peterjah peterjah commented Jan 9, 2025

No description provided.

Copy link
Member

@thomas-senechal thomas-senechal left a 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

Comment on lines +965 to +969
ruleType:
type: string
enum:
- password_prompt
- auto_sign
Copy link
Member

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 ?

Suggested change
ruleType:
type: string
enum:
- password_prompt
- auto_sign
ruleType:
$ref: "#/definitions/RuleType"

Comment on lines +84 to +92
// Find the index of the rule to update
index := -1

for i, rule := range account.SignRules {
if rule.ID == ruleID {
index = i
break
}
}
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants