Skip to content

uniCloud的schema2code代码生成,errorMessage生成的代码会异常 #5535

Open
@fhaskla

Description

@fhaskla

云服务商

阿里云

Bug 描述

"name": {
"bsonType": "string",
"title": "姓名",
"minLength": 2,
"maxLength": 8,
"errorMessage": {
"required": "{title}必填",
"minLength": "{title}不能小于{minLength}个字符",
"maxLength": "{title}不能大于{maxLength}个字符"
},
...
},
官网的 errorMessage 无法使用,

Image

无法正确显示title:姓名,minLength可以正确显示为2

复现步骤

创建一个表结构,使用schema2code代码生成,然后就会出现这个bug

预期结果

No response

实际结果

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions