Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "type": "object",
- "properties": {
- "users": {
- "type": "array",
- "minItems": 5,
- "maxItems": 10,
- "items": {
- "type": "object",
- "properties": {
- "emplId": {
- "type": "integer",
- "unique": true,
- "minimum": 1000000,
- "maximum": 1500000
- },
- "empDeptId": {
- "type": "integer",
- "jsonPath": "$..departments[*].id"
- }
- },
- "required": [
- "emplId",
- "empDeptId"
- ]
- }
- },
- "departments": {
- "type": "array",
- "minItems": 3,
- "maxItems": 5,
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer",
- "minimum": 1000,
- "maximum": 9999,
- "unique": true
- },
- "name": {
- "type": "string",
- "faker": "name.jobArea",
- "unique": true
- }
- },
- "required": [
- "id",
- "name"
- ]
- }
- }
- },
- "required": [
- "users",
- "departments"
- ]
- }
Add Comment
Please, Sign In to add comment