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

NonTypedDataSourceGeneratorAttribute #1555

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

thomhurst
Copy link
Owner

@Ergamon this one is for you, for your AutoFixture data generators.

This would allow you to inherit from NonTypedDataSourceGeneratorAttribute, and like other frameworks, you need only return an object?[]? so there's no type checking involved.

The caveat is if you generate the wrong types, the source generator has no way to inspect them, so you may get compile errors, but that's only if you're generating bad data.

Sound good?

@thomhurst thomhurst enabled auto-merge (squash) January 14, 2025 00:20
@thomhurst thomhurst merged commit e254bb7 into main Jan 14, 2025
7 of 8 checks passed
@thomhurst thomhurst deleted the feature/NonTypedDataSourceGeneratorAttribute branch January 14, 2025 00:36
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