Skip to content

Customize Tool Parameter validation errors #553

@sabob

Description

@sabob

Hi all,

Is it possible to customize validation error messages? Through a global error handler perhaps?

This line in particular leaked an internal package name during testing:

"Invalid argument [%s] - value does not match %s".formatted(arg.name(), arg.type().getTypeName()));

The test script sent nonsense data to our tool and the response was:

Invalid argument [request] - value does not match com.mycorp.MarketDisruptionPlan

Kind regards

Bob

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions