hello.schema.json 568 B

123456789101112131415161718192021222324252627
  1. // 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
  2. {
  3. "bsonType": "object",
  4. "required": ["name"],
  5. "permission": {
  6. "read": true,
  7. "create": true,
  8. "update": true,
  9. "delete": true
  10. },
  11. "properties": {
  12. "_id": {
  13. "description": "ID"
  14. },
  15. "name": {
  16. "bsonType": "string",
  17. "label": "%name%",
  18. "minLength": 1,
  19. "maxLength": 8,
  20. "errorMessage": {
  21. "format": "{label}%name.format%",
  22. "minLength": "{label}%name.minLength%",
  23. "maxLength": "{label}%name.maxLength%"
  24. }
  25. }
  26. }
  27. }