ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 64 forks source link

The connector generated by the `bal mi` tool gives an error when used within the Micro Integrator #7371

Open poorna2152 opened 3 days ago

poorna2152 commented 3 days ago

Description

When a connector generated by bal mi tool is added to the Micro Integrator and this is used within a sequence an error is given.

Element name 'description' is invalid.

One of the following is expected:
 - Result
 - invoice

Error indicated by:
 {http://ws.apache.org/ns/synapse}
with code:xml(cvc-complex-type.2.4.a)

Consider the screenshot ,

image

Steps to Reproduce

  1. Generate a connector using the bal mi tool.
  2. Add this connector to a MI project.
  3. Use this connector within a sequence

Version

v0.1.2

Environment Details (with versions)

No response

poorna2152 commented 1 day ago

The fix is to remove the description field from the schema. There is also this issue that is going to add a description field by default to the connector from the MI VsCode side. Thus this can also create a conflict with that field.