Is there an existing issue for this?
Current Behavior
In the addCustoms Header method, when obtaining the value of the header, only the basic type is checked. If a string type check is added, when testing the MCP tool, except for string type, numerical and Boolean basic types cannot be replaced with the value of the header.
Expected Behavior
In the addCustoms Header method, when obtaining the value of the header, only the basic type is checked. If a string type check is added, when testing the MCP tool, except for string type, numerical and Boolean basic types cannot be replaced with the value of the header.
Steps To Reproduce
- Convert an existing interface with a header into an MCP tool.
- Test the MCP tool.
- Enter the input parameters as numbers.
- Enter the addCustoms Header method and view the code for replacing header values.
Environment
ShenYu version(s):2.7.1-SNAPSHOT
Debug logs
No response
Anything else?
No response
Is there an existing issue for this?
Current Behavior
In the addCustoms Header method, when obtaining the value of the header, only the basic type is checked. If a string type check is added, when testing the MCP tool, except for string type, numerical and Boolean basic types cannot be replaced with the value of the header.
Expected Behavior
In the addCustoms Header method, when obtaining the value of the header, only the basic type is checked. If a string type check is added, when testing the MCP tool, except for string type, numerical and Boolean basic types cannot be replaced with the value of the header.
Steps To Reproduce
Environment
Debug logs
No response
Anything else?
No response