Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexben001 committed Sep 6, 2019
1 parent 80c6f6e commit 66dde5e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
**[Production Deployment](https://t-ndo.herokuapp.com)** <br/>
**[Staging Deployment](https://tndo-temp-staging.herokuapp.com/)**

[![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/6d10e011b0f2b557f0f7)
[![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/4dc889b835331a059718)

## Getting started

Expand Down Expand Up @@ -68,7 +68,7 @@ JWT_SECRET=<generated string>

## Endpoints

**[View API Reference Here](https://documenter.getpostman.com/view/6785535/SVfQRowD)**
**[View API Reference Here](https://documenter.getpostman.com/view/5770396/SVfWM5o8)**

# Data Model

Expand Down Expand Up @@ -114,15 +114,15 @@ User types (Staff/Admin)
place_of_birth: STRING,
date_of_birth: DATE,
id_type: STRING,
id_number: NUMBER,
id_number: STRING,
district: STRING,
region: STRING,
community_name: STRING,
house_name: STRING,
house_number: NUMBER,
house_number: STRING,
nearest_landmark: STRING,
Phone_1: NUMBER,
Phone_2: NUMBER,
Phone_1: STRING,
Phone_2: STRING,
education_level: STRING,
occupation: STRING,
expected_income_per_month: STRING,
Expand All @@ -132,20 +132,20 @@ User types (Staff/Admin)
minor_source_of_income_amount: NUMBER
},
familyInfo: {
family_size: NUMBER,
number_of_dependant: NUMBER,
highest_level_of_dependent: STRING,
family_income_per_month: STRING
},
guarantor:{
family_size: NUMBER,
number_of_dependant: NUMBER,
highest_level_of_dependent: STRING,
family_income_per_month: STRING
},
guarantor:{
grt_title: STRING,
grt_surname: STRING,
grt_first_name: STRING,
grt_gender: STRING,
grt_relations: STRING,
grt_residential_address: STRING,
grt_occupation: STRING,
grt_phone: NUMBER,
grt_phone: STRING,
grt_district: STRING,
grt_region: STRING
},
Expand Down
7 changes: 2 additions & 5 deletions middlewares/Validations/farmer/createFarmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ const personalInfo = Joi.object().keys({
title: validateEnums('Miss', 'Mrs', 'Mr', 'Chief'),
surname: validateString(),
first_name: validateString(),
image_url: Joi.string(),
middle_name: Joi.string()
.min(3)
.max(30)
.trim(),
image_url: Joi.string().allow(''),
middle_name: Joi.string().allow(''),
marital_status: validateEnums('Single', 'Married', 'Widowed', 'Divorced'),
gender: validateEnums('Male', 'Female', 'Others'),
place_of_birth: validateString(50),
Expand Down

0 comments on commit 66dde5e

Please sign in to comment.