Skip to content

bal edi codegen throws unused configurable variables error #8046

Open
@Dilhasha

Description

@Dilhasha

Description

When trying to create code using bal edi codegen command within an existing ballerina project, it throws errors for existing configurable variables in the project. But the codegen command is not supposed to check the configurable variables available in the location. It should create code independently.

Steps to Reproduce

I have a ballerina package that has some configurable variables defined. Then I tried to use the bal edi codegen command to create ballerina code for a edi schema by executing the command within the project itself. This attempt throwed the following error.

bal edi codegen -i resources/edi_schema.json -o modules/invoice_processor/edi-transformations.bal
Generating code for resources/edi_schema.json...
error: [Config.toml:(12:1,12:33)] unused configuration value 'ftpHost'
error: [Config.toml:(13:1,13:13)] unused configuration value 'ftpPort'
error: [Config.toml:(14:1,14:30)] unused configuration value 'ftpUsername'
error: [Config.toml:(15:1,15:37)] unused configuration value 'ftpPassword'
error: [Config.toml:(16:1,16:47)] unused configuration value 'ftpInvoiceLocation'
error: [Config.toml:(17:1,17:28)] unused configuration value 'ftpFilePattern'

Version

bal edi tool version 2.1.0

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions