Open KavinduZoysa opened 1 month ago
Since the Ballerina Integrator uses openapi-core
package instead of openapi-cli
to generate the service contract and the types file, you can implement a logic to override the filenames as your choice by referring the file type returning from the GenSrcFile
refer. As we discussed, this solution will meet your requirement.
Later, if we are going to further implement this in the CLI tool, we can add CLI options for the user to rename the files as their preference.
Description: When we generate the service object type in the open API tool, it always generates the 2 files called
service_contract.bal
andtypes.bal
. We need to parameterize these file names.