You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: