-
Notifications
You must be signed in to change notification settings - Fork 192
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
V2 creates empty definitions after updating from V1 #1941
Comments
It should still work. The CLI works for me. |
I was able to get it working with version 2.1.1 by specifying the type in this case TabsConfig like in your CLI command. But using * generates empty definitions. Using |
Huh, that sounds like a bug then. I don't remember changing anything specific to *. Could you step through the code to see what might be wrong? |
I did check the results and compared. In SchemaGenerator.ts getRootNodes function returns empty list in v2. In line 51
V1 returns
While V2 returns
This then results to empty array returned from function because the in V2 this string path doesn't match any of the strings in rootSourceFiles. I went a bit deeper and in
returns different result in V2 similar to differences described above. Is this enough to get you on track how this should be fixed? |
Oh, I see you are on windows. I saw that windows changed but I don't have windows so I can't fix it. It would be awesome if you could find a fix and send it since you can actually test it. Looks like you already identified the root cause. I can reenable the ci for windows when the fix is in. |
I'm trying to migrate from version 1.5.1 to version 2. Generating schema is working fine in 1.5.1. I'm running following file.
tabs.ts contains following
But in version 2 the result is:
I didn't notice change in README programmatic example so I assume this part of the code should still work like in v1.
The text was updated successfully, but these errors were encountered: