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

refactor: ♻️ Added is_silent parameter to is_name_or_namespace_valid() #128

Conversation

KANAjetzt
Copy link
Member

is_silent parameter for is_name_or_namespace_valid(). Can be used to not log an error if the validation returns false. Useful for example if the validation is used in a text input where the result will be false, most of the times.

@KANAjetzt KANAjetzt added the enhancement New feature or request label Feb 24, 2023
@KANAjetzt KANAjetzt requested review from Qubus0 and a team February 24, 2023 14:56
@ithinkandicode
Copy link
Collaborator

ithinkandicode commented Feb 24, 2023

Is this for the dependency version issue? If so, please see:

Otherwise I'm not sure what benefit this PR brings?

Oh, is this for the dev tool you've been working on?

Copy link
Collaborator

@Qubus0 Qubus0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good, but we need those for other validation methods as well
@ithinkandicode yeah it's for the addon, to not spam the console with each validation. Probably a good thing to have anyway though, even if it's technically not needed in the mod loader itself yet.

Copy link
Collaborator

@ithinkandicode ithinkandicode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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

Successfully merging this pull request may close these issues.

3 participants