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

--verbose flag for Orval generation #1821

Open
ignatzami opened this issue Jan 13, 2025 · 2 comments
Open

--verbose flag for Orval generation #1821

ignatzami opened this issue Jan 13, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@ignatzami
Copy link

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.

@melloware melloware added the enhancement New feature or request label Jan 13, 2025
@ignatzami
Copy link
Author

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
🍻 Start orval v7.4.0 - A swagger client generator for typescript
Running afterAllFilesWrite hook...
🎉 ms-graph - Your OpenAPI spec has been converted into ready to use orval!
2025-01-13 11:40:06.429

@AllieJonsson
Copy link
Contributor

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,
  },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants