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

[BUG] Default oas file generated has a different name than the default name expected in oas-tools/core #18

Open
josemgarcia opened this issue Jan 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@josemgarcia
Copy link

When generating a server with the CLI, the default configuration included in index.js does not specify the OAS file the server was generated from.

The validation that oas-tools perform expects that, if no oas file is specificied in the configuration object passed to the initialize function, the default OAS file will be at api/oas-file.yaml. However, the CLI generates it as api/oas-doc.yaml, causing an initialization error as a consequence if no explicit config is provided.

It would be better to sync somehow the two default names both in CLI and in core modules.

@josemgarcia josemgarcia added the bug Something isn't working label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant