profile.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "x-tcms-post-type" : {
  3. "name" : "profile",
  4. "generated" : false,
  5. "description" : "A user. Posts to /profile rather than /post/save, as it also drives Trog::Auth.",
  6. "comment" : "'password' is deliberately absent: profile() strips it before the post is saved, and it must never reach the datastore."
  7. },
  8. "type" : "object",
  9. "properties" : {
  10. "preview" : {
  11. "type" : "string",
  12. "x-tcms-label" : "Avatar"
  13. },
  14. "preview_file" : {
  15. "type" : "upload",
  16. "x-tcms-label" : "Avatar",
  17. "x-tcms-input" : "file"
  18. },
  19. "username" : {
  20. "type" : "string",
  21. "x-tcms-label" : "Username"
  22. },
  23. "display_name" : {
  24. "type" : "string",
  25. "x-tcms-label" : "Display Name"
  26. },
  27. "contact_email" : {
  28. "type" : "email",
  29. "x-tcms-label" : "Contact Email"
  30. },
  31. "wallpaper" : {
  32. "type" : "string",
  33. "x-tcms-label" : "Wallpaper"
  34. },
  35. "wallpaper_file" : {
  36. "type" : "upload",
  37. "x-tcms-label" : "Wallpaper",
  38. "x-tcms-input" : "file"
  39. },
  40. "user_acls" : {
  41. "type" : "array",
  42. "items" : { "type" : "string" },
  43. "x-tcms-label" : "User ACLs"
  44. }
  45. }
  46. }