-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
--verbose flag for Orval generation #1821
Comments
I successfully generated a piece of the Graph API (https://github.com/microsoftgraph/msgraph-sdk-powershell/blob/dev/openApiDocs/v1.0/Groups.yml) Even this smaller (thought still substantial) spec took over 13 minutes to process. 2025-01-13 11:27:12.580 |
While I think logs would be great, in the meantime I think disabling validation will help a lot with reducing time generating: input: {
target: '/mySchema.yaml',
parserOptions: {
validate: false,
},
} |
I just tried this option on a project, where I have type generation times of up to 25 minutes. It's now taking ~6 seconds. Am I correct in assuming that setting If so am I correct to assume that - as long as I can trust the swagger input - the output will be correct with this validate setting set to false? |
@madskchristensen you nailed it! |
@melloware Awesome, thanks for the quick response. Sorry for hijacking this issue but... It would be hugely beneficial if you updated your documentation to reflect what this option does. I've done a deep-dive into why our type/api generation would be so time consuming, and it lead me down a rabbit hole, where I could conclude that the As part of the target input validation a The project I'm working on has quite a few circular dependencies (NestJS) - so that might be the reason, as the implementation of this function also contains a conditional recursive call to itself. Either way I think your docs could greatly benefit from having an explanation outlining this. In our case we've considered replacing Orval quite a few times, due to the type gen speed causing a sub-optimal developer experience. Again, thanks for your quick reply. Much appreciated! |
I wonder if we should make the default FALSE as well... PR is welcome to update the docs @madskchristensen ! |
@melloware I wouldn't mind submitting a PR, but I would need more context into how Orval works. For example, I'm still not entirely sure about the purpose of the validate "step" within Orval. On our project we just did a spot-test with
|
as far as dereferencing see these two closed PR's that were rejected: https://github.com/orval-labs/orval/pulls?q=is%3Apr+is%3Aclosed+dereference |
Thanks, I'll take a look! |
I'm presently trying to generate a schema for a very large OpenAPI specification (MSGraph) and I'd love the ability to have the tool report progress as it goes.
As it stands, I've been staring at a terminal window for minutes and wondering if the process is still active, is it choking, is progress being made? Given that even with a smaller spec (the petstore.yaml) output isn't exactly blazing fast I feel that some user feedback during conversion would be very helpful.
The text was updated successfully, but these errors were encountered: