Closed hmj776521114 closed 4 months ago
当把示例vo的代码改为
@SpelNotBlank(condition = "#this.switchAudio == true", message = "语音内容不能为空") private String audioContent;
请求参数为:
{ "switchAudio":true, "audioContent": null }
响应结果为:
{ "timestamp": "2024-05-09T04:36:45.128+00:00", "status": 500, "error": "Internal Server Error", "path": "/example/simple" }
控制台报错:
cn.sticki.validator.spel.exception.SpelNotSupportedTypeException: Object class not supported, class: com.imashiamro.validatordemo.model.SimpleExampleParamVo, supperType: [interface java.lang.CharSequence]
hi ,感谢你的反馈,这个地方确实是个bug,由于测试用例还不太完善,所以没有测到这个部分,抱歉🤡
此bug已经在 0.0.3-beta 中修复
当把示例vo的代码改为
请求参数为:
响应结果为:
控制台报错: