{"type":"object","title":"Personal schema.","$schema":"http://json-schema.org/draft-07/schema#","properties":{"personnel":{"type":"object","additionalProperties":false,"title":"The 'personnel' property","description":"Defines the personnel as a collection of person entries.","properties":{}}}}
Property personnel
Annotations
Title The 'personnel' property
Description Defines the personnel as a collection of person entries.
"personnel":{"type":"object","additionalProperties":false,"title":"The 'personnel' property","description":"Defines the personnel as a collection of person entries.","properties":{"person":{"$ref":"#/definitions/personType"}}}
"personType":{"type":"array","uniqueItems":true,"title":"The 'person' property","description":"Specifies information about a person.","items":{"type":"object","additionalProperties":false,"description":"Rules for properties defining the items that constitute a 'person'","required":["id","name","email","link"],"properties":{"id":{"$ref":"#/definitions/idType"},"name":{"$ref":"#/definitions/nameType"},"email":{"type":"string","format":"email","title":"The 'email' schema.","description":"Email address for this person."},"link":{"$ref":"#/definitions/linkType"}}}}
Definition personType/items
Annotations
Description Rules for properties defining the items that constitute a 'person'
"items":{"type":"object","additionalProperties":false,"description":"Rules for properties defining the items that constitute a 'person'","required":["id","name","email","link"],"properties":{"id":{"$ref":"#/definitions/idType"},"name":{"$ref":"#/definitions/nameType"},"email":{"type":"string","format":"email","title":"The 'email' schema.","description":"Email address for this person."},"link":{"$ref":"#/definitions/linkType"}}}
Definition idType
Annotations
Title The 'id' property
Description Specifies a required ID for this person.
"idType":{"type":"string","maxLength":20,"title":"The 'id' property","description":"Specifies a required ID for this person. ","examples":["Big.Boss"]}
"nameType":{"type":"object","additionalProperties":false,"title":"The 'name' property","description":"Specifies the family and given name for the person.","required":["family","given"],"properties":{"family":{"$ref":"#/definitions/nameValueType"},"given":{"$ref":"#/definitions/nameValueType"}}}
Definition nameValueType
Annotations
Title The 'family' or 'given' property
Description The first name or last name of the person.
"nameValueType":{"type":"string","minLength":1,"maxLength":20,"pattern":"^[a-zA-Z ]*$","title":"The 'family' or 'given' property","description":"The first name or last name of the person.","examples":["John"]}
"linkType":{"type":"object","additionalProperties":false,"title":"The 'link' property","description":"Specifies who is the manager and who are the subordinates for this person.","properties":{"subordinates":{"type":"array","title":"The 'subordinates' propety","description":"Specifies the ids of the subordinates.","items":{}},"manager":{"$ref":"#/definitions/idType"}}}
Definition subordinates
Annotations
Title The 'subordinates' propety
Description Specifies the ids of the subordinates.
"subordinates":{"type":"array","title":"The 'subordinates' propety","description":"Specifies the ids of the subordinates.","items":{"$ref":"#/definitions/idType"}}