-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix(dynamite): too long names for someOf typedefs #1350
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh ok no we can't do this, it's a horrible user experience. We are just working around a problem with dart doc here, we need to fix it there.
What do you mean? In theory we can make them visibleForTesting. Users would loose the ability to have a |
packages/dynamite/dynamite_end_to_end_test/lib/type_defs.openapi.dart
Outdated
Show resolved
Hide resolved
Well in some places one needs to create objects, e.g. spreed signaling. Using some weird hash name is not ok there |
Please see the above code comment. |
069a877
to
a283eca
Compare
Just to be sure I understand the approach: The serializers and records are private and hashed, but we have proxy extensions that are human readable. There might be multiple proxy extensions pointing to the same type as they would otherwise have to have the long names we had problems. Is this correct? One problem I still see is that someone could create a schema that has >255 characters, but we can't do much about that and it would be quite stupid anyway. |
The good thing is that dynamite would not fail. They would just not be able to create documentation for their generated code (which is out of our responsibility). |
Can you confirm that I understand this change correctly? |
The commit message has a typo btw ( |
Ah sorry. |
Is the rest fine? So I only need to push once more? |
a283eca
to
1a616a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the typo in the commit message and pr title before merging
refactor(dynamite): make someOf extensions and serializers private Signed-off-by: Nikolas Rimikis <[email protected]>
1a616a2
to
75b27c7
Compare
Can I get a new review? |
No description provided.