Guest User

Untitled

a guest
Apr 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. {
  2. "type": "object",
  3. "properties": {
  4. "users": {
  5. "type": "array",
  6. "minItems": 5,
  7. "maxItems": 10,
  8. "items": {
  9. "type": "object",
  10. "properties": {
  11. "emplId": {
  12. "type": "integer",
  13. "unique": true,
  14. "minimum": 1000000,
  15. "maximum": 1500000
  16. },
  17. "empDeptId": {
  18. "type": "integer",
  19. "jsonPath": "$..departments[*].id"
  20. }
  21. },
  22. "required": [
  23. "emplId",
  24. "empDeptId"
  25. ]
  26. }
  27. },
  28. "departments": {
  29. "type": "array",
  30. "minItems": 3,
  31. "maxItems": 5,
  32. "items": {
  33. "type": "object",
  34. "properties": {
  35. "id": {
  36. "type": "integer",
  37. "minimum": 1000,
  38. "maximum": 9999,
  39. "unique": true
  40. },
  41. "name": {
  42. "type": "string",
  43. "faker": "name.jobArea",
  44. "unique": true
  45. }
  46. },
  47. "required": [
  48. "id",
  49. "name"
  50. ]
  51. }
  52. }
  53. },
  54. "required": [
  55. "users",
  56. "departments"
  57. ]
  58. }
Add Comment
Please, Sign In to add comment