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

Modify generator.NewCatalogSourcedNameGenerator to return also an error #21

Conversation

carloscasalar
Copy link
Owner

@carloscasalar carloscasalar commented Dec 2, 2024

When creating a catalog-based name generator, the validation rules are attached to the struct representing the catalog file. I want to push that validation logic into the catalog-sourced name generator as the rules are the same, no matter if they come from a file or from a hardcoded list.

This MR pushes the validation logic into the NewCatalogSourcedNameGenerator constructor.

@carloscasalar carloscasalar added the enhancement New feature or request label Dec 2, 2024
@carloscasalar carloscasalar self-assigned this Dec 2, 2024
@carloscasalar carloscasalar marked this pull request as ready for review December 8, 2024 12:40
@carloscasalar carloscasalar merged commit a250393 into main Dec 8, 2024
4 checks passed
@carloscasalar carloscasalar deleted the 16-modify-generatornewcatalogsourcednamegenerator-to-return-also-an-error branch December 8, 2024 12:42
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.

Modify generator.NewCatalogSourcedNameGenerator to return also an error
1 participant