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

Support classes that were not generated by dor_gen #7

Open
michalowskim opened this issue Mar 18, 2024 · 0 comments
Open

Support classes that were not generated by dor_gen #7

michalowskim opened this issue Mar 18, 2024 · 0 comments

Comments

@michalowskim
Copy link

Currently dor_gen supports only classes that were generated by itself.
Let's see example below

@Dto()
class A {
  final B b;

  A(this.b);
}

class B {}

You can't include B as a field in A - dor_gen require B to be generated by dor_gen - it will look for this class in ./b.dto.g.dart but in fact is is somewhere else.

I think we should somehow support classes from outside of dor_gen, so they can be used and combined with each other.

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

No branches or pull requests

1 participant