Skip to content
Permalink
5905e0c28b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
81 lines (68 sloc) 1.51 KB
{
"$schema": "https://json-schema.org/draft-07/schema#",
"definitions": {
"application": {
"title": "Application",
"description": "Gym membership application",
"type": "object",
"properties": {
"firstName": {
"type": "string",
"maxLength": 64,
"description": "First Name"
},
"lastName": {
"type": "string",
"maxLength": 64,
"description": "Last Name"
},
"email": {
"type": "string",
"maxLength": 64,
"description": "Email of user"
},
"address": {
"type": "string",
"maxLength": 255,
"description": "Address of user"
},
"paymentDetails": {
"type": "string",
"maxLength": 64,
"description": "Payment Details of user"
},
"fitnessGoals": {
"type": "string",
"maxLength": 255,
"description": "User's fitness goals"
},
"medicalHistory": {
"type": "string",
"maxLength": 255,
"description": "Medical history of user"
}
},
"required": [""],
"additionalProperties": false
},
"applicationCreation": {
"$id": "#applicationCreation",
"title": "Application Creation",
"description": "Creation of application",
"type": "object",
"properties": {
"ID": {
"description": "ID of created application",
"type": "Integer"
}
}
},
"getAllApplications": {
"$id": "#getAllApplications",
"title": "Getting all applications",
"description": "JSON data of application returned",
"type": "object",
"allOf": [{ "$ref": "#/definitions/application" }]
}
}
}