Skip to content

OpenApi plugin fails if output directory does not exist #2080

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

Closed
mjperlini opened this issue Apr 11, 2025 · 1 comment
Closed

OpenApi plugin fails if output directory does not exist #2080

mjperlini opened this issue Apr 11, 2025 · 1 comment

Comments

@mjperlini
Copy link

Description and expected behavior
When running the openapi generator, the process fails as follows:

An unexpected error occurred:
Error: ENOENT: no such file or directory

Environment (please complete the following information):

  • ZenStack version: 2.3.1
  • Prisma version: 6.5
  • Database type: Sqlite

Additional context
The other plugins call 'ensureEmptyDir' which creates the directory if it doesn't exist. The openapi plugin (both rest-generator and rpc-generator) doesn't call this function, so the plugin fails if the directory doesn't exist.

@ymc9
Copy link
Member

ymc9 commented Apr 16, 2025

Fixed in 2.14.0

@ymc9 ymc9 closed this as completed Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants