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

Feature Request: Option to disable writes? #1748

Open
shinebayar-g opened this issue Dec 14, 2024 · 1 comment
Open

Feature Request: Option to disable writes? #1748

shinebayar-g opened this issue Dec 14, 2024 · 1 comment
Labels
question Further information is requested

Comments

@shinebayar-g
Copy link

shinebayar-g commented Dec 14, 2024

What are the steps to reproduce this issue?

Hi. I'm using orval like this

import * as orval from 'orval';

orval.generate({
    input: './src/oas.json',
    output: './src/orval-generated.ts',
});

It works flawlessly. However, is there an option to disable disk writes? I just wanted to work with ASTs / or strings to do further customization before writing to disk. Is it possible?

What happens?

What were you expecting to happen?

Any logs, error output, etc?

Any other comments?

What versions are you using?

Please execute npx envinfo --system --npmPackages orval,zod,axios,msw,swr,@tanstack/react-query,@tanstack/vue-query,react,vue and paste the results here.

@melloware
Copy link
Collaborator

i don;t think there is an option to disable writes i think the closest there is is this: https://orval.dev/reference/configuration/hooks#afterallfileswrite

@melloware melloware added the question Further information is requested label Dec 15, 2024
@shinebayar-g shinebayar-g changed the title Option to disable writes? Feature Request: Option to disable writes? Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants