user.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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": ["schemas","id","active","userName","name","meta","emails"],
  55. "properties": {
  56. "schemas": {"$ref": "#/definitions/schemas"},
  57. "id": {
  58. "type": "string"
  59. },
  60. "active": {"$ref": "#/definitions/active"},
  61. "userName": {"$ref": "#/definitions/userName"},
  62. "name": {"$ref": "#/definitions/name"},
  63. "meta": {"$ref": "#/definitions/meta"},
  64. "emails": {"$ref": "#/definitions/emails"}
  65. }
  66. }
  67. }