Skip to content

Feat: Add input validation for KeyID and TeamID #14

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

Closed
wants to merge 1 commit into from

Conversation

petarov
Copy link
Owner

@petarov petarov commented May 24, 2025

Implements input validation for the following command-line flags:

  • KeyID (-key-id): Ensures it is 10 characters long and alphanumeric when provided.
  • TeamID (-team-id): Ensures it is 10 characters long and alphanumeric when provided.

These validations provide earlier feedback to you for common input errors, improving the tool's usability.

Client-side validation for PushType and PushPriority has been removed as server-side validation by APNs is sufficient for those fields.

Implements input validation for the following command-line flags:
- KeyID (-key-id): Ensures it is 10 characters long and alphanumeric when provided.
- TeamID (-team-id): Ensures it is 10 characters long and alphanumeric when provided.

These validations provide earlier feedback to you for common input errors,
improving the tool's usability.

Client-side validation for PushType and PushPriority has been removed
as server-side validation by APNs is sufficient for those fields.
@petarov petarov closed this May 24, 2025
@petarov petarov deleted the feat/input-validation branch May 24, 2025 10:48
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.

1 participant