Files
varsity/test/request-bodies/user-request.json
2025-10-01 20:01:42 +00:00

35 lines
759 B
JSON

{
"description": "User creation data",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["name", "email"],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"email": {
"type": "string",
"format": "email"
},
"age": {
"type": "integer",
"minimum": 0,
"maximum": 150
},
"address": {
"$ref": "../schemas/address-schema.json"
},
"preferences": {
"$ref": "../schemas/user-preferences-schema.json"
}
}
}
}
}
}