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

feat: port support string type #1356

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

sapenlei
Copy link
Contributor

I want the port to support string type for two reasons:

  1. Many well-known libraries support both string and number for port configuration, since ports are typically loaded from env files where values are strings. This way, users don't need to perform type conversion.

  2. Many people, including myself, find that when the port is passed as a string type, the error message is not very clear, only showing "invalid port".

@sapenlei
Copy link
Contributor Author

Can this PR be merged? @prakashsvmx

@prakashsvmx
Copy link
Member

Thank you for the contribution @sapenlei

@prakashsvmx prakashsvmx merged commit 91dff4b into minio:master Nov 16, 2024
10 checks passed
@sapenlei sapenlei deleted the feature/port-support-string-type branch November 16, 2024 04:13
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.

3 participants