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
feat: add help message about AnonymousSchema generated classes #211
feat: add help message about AnonymousSchema generated classes #211
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.
- using template literals would be better/easier imho to build these structured console log information.
- would be super nice to point user in some direction that will help figure out where things happened. Maybe at least consol.log paths to files with anonymous schema name models?
Paths were added. |
@Tenischev one example of template literal:
most of these console.log you could put in one literal, which would make it much easier to maintain |
use one string for help message Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
I think you need to update tests |
seems to be a bug of build |
@Tenischev just keep in mind that if it is |
/rtm |
🎉 This PR is included in version 0.28.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Many times users faced problem with
AnonymousSchema
model classes. This happens because someschemas
element defined as sub-object (insideallOf
,items
e.t.c.) and parser couldn't provide any significant name for them and so class name couldn't be defined.This behavior is not directly problem of parser or template, but rather of user's AsyncAPI itself.
So, I decided to add info message with description how to discard
AnonymousSchema
classes if generation result contains them.Related issue(s)
See also #203 #131 #78