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 validation functions #130

Conversation

KANAjetzt
Copy link
Member

@KANAjetzt KANAjetzt commented Feb 25, 2023

Added is_silent parameter to

  • is_name_or_namespace_valid()
  • is_semver_valid()
  • validate_dependencies_and_incompatibilities()
  • is_mod_id_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 most of the times false. Implemented with the ModTool in mind.

*Sorry accidentally closed #128

Added is_silent parameter to `is_name_or_namespace_valid()`, `is_semver_valid()`, `validate_dependencies_and_incompatibilities()`, `is_mod_id_valid()`. Can be used to not log an error if the validation returns `false`. Usefull for example if the validaiton is used in a text input where the result will be most of the times `false`. Implemented with the ModTool in mind.
@KANAjetzt KANAjetzt added the enhancement New feature or request label Feb 25, 2023
@KANAjetzt KANAjetzt requested review from ithinkandicode, Qubus0 and a team February 25, 2023 01:17
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.

perfect, thanks

@KANAjetzt KANAjetzt merged commit 12f7bdc into GodotModding:development Feb 25, 2023
@KANAjetzt KANAjetzt deleted the silent_is_name_or_namespace_valid branch March 9, 2023 11:10
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.

2 participants