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
The Ballerina packages are identified by a Ballerina.toml file: https://ballerina.io/learn/organize-ballerina-code/#package-structure
If it is not found, the Ballerina files are treated as individual files. So if we try to generate a service implementation outside a Ballerina project from a given OpenAPI contract, the VSCode plugin states types can't be found. In this case, we can generate the service and types as a single file as follows,
bal openapi -i openapi.yaml --mode service --single-file
This issue is created to improve this to detect if the user is in a Ballerina project and default to single file mode if not.
Version
No response
The text was updated successfully, but these errors were encountered:
Description
The Ballerina packages are identified by a
Ballerina.toml
file: https://ballerina.io/learn/organize-ballerina-code/#package-structureIf it is not found, the Ballerina files are treated as individual files. So if we try to generate a service implementation outside a Ballerina project from a given OpenAPI contract, the VSCode plugin states types can't be found. In this case, we can generate the service and types as a single file as follows,
This issue is created to improve this to detect if the user is in a Ballerina project and default to single file mode if not.
Version
No response
The text was updated successfully, but these errors were encountered: