user.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. "definitions": {
  3. "active": {
  4. "type": "boolean"
  5. },
  6. "userName": {
  7. "type": "string"
  8. },
  9. "schemas": {
  10. "type": "array",
  11. "items": {
  12. "type": "string"
  13. }
  14. },
  15. "name": {
  16. "type": "object",
  17. "properties": {
  18. "givenName": {
  19. "type": "string"
  20. },
  21. "familyName": {
  22. "type": "string"
  23. }
  24. }
  25. },
  26. "emails": {
  27. "type": "array",
  28. "items": {
  29. "type": "object",
  30. "properties": {
  31. "type": {
  32. "type": "string"
  33. },
  34. "value": {
  35. "type": "string"
  36. },
  37. "primary": {
  38. "type": "boolean"
  39. }
  40. }
  41. }
  42. },
  43. "meta": {
  44. "type": "object",
  45. "properties": {
  46. "resourceType": {
  47. "type": "string"
  48. }
  49. }
  50. }
  51. },
  52. "User": {
  53. "type": "object",
  54. "required": [
  55. "schemas",
  56. "id",
  57. "active",
  58. "userName",
  59. "name",
  60. "meta",
  61. "emails"
  62. ],
  63. "properties": {
  64. "schemas": { "$ref": "#/definitions/schemas" },
  65. "id": {
  66. "type": "string"
  67. },
  68. "active": { "$ref": "#/definitions/active" },
  69. "userName": { "$ref": "#/definitions/userName" },
  70. "name": { "$ref": "#/definitions/name" },
  71. "meta": { "$ref": "#/definitions/meta" },
  72. "emails": { "$ref": "#/definitions/emails" }
  73. }
  74. }
  75. }