From 741139db5971fc08f97ccdc729eeb10c2459a595 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Tue, 26 Aug 2014 11:34:33 -0700 Subject: [PATCH] Apparently GitHub ids are integers, not strings. --- app/schemas/models/user.coffee | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/schemas/models/user.coffee b/app/schemas/models/user.coffee index 467111b27..9f289f806 100644 --- a/app/schemas/models/user.coffee +++ b/app/schemas/models/user.coffee @@ -11,19 +11,19 @@ phoneScreenFilter = title: 'Phone screened' type: 'boolean' description: 'Whether the candidate has been phone screened.' -schoolFilter = +schoolFilter = title: 'School' type: 'string' enum: ['Top School', 'Other'] -locationFilter = +locationFilter = title: 'Location' type: 'string' enum: ['Bay Area', 'New York', 'Other US', 'International'] -roleFilter = +roleFilter = title: 'Role' type: 'string' enum: ['Web Developer', 'Software Developer', 'Mobile Developer'] -seniorityFilter = +seniorityFilter = title: 'Seniority' type: 'string' enum: ['College Student', 'Recent Grad', 'Junior', 'Senior'] @@ -32,7 +32,7 @@ visa = c.shortString description: 'Are you authorized to work in the US, or do you need visa sponsorship? (If you live in Canada or Australia, mark authorized.)' enum: ['Authorized to work in the US', 'Need visa sponsorship'] default: 'Authorized to work in the US' - + _.extend UserSchema.properties, email: c.shortString({title: 'Email', format: 'email'}) firstName: c.shortString({title: 'First Name'}) @@ -43,7 +43,7 @@ _.extend UserSchema.properties, photoURL: {type: 'string', format: 'image-file', title: 'Profile Picture', description: 'Upload a 256x256px or larger image to serve as your profile picture.'} facebookID: c.shortString({title: 'Facebook ID'}) - githubID: c.shortString({title: 'GitHub ID'}) + githubID: {type: 'integer', title: 'GitHub ID'} gplusID: c.shortString({title: 'G+ ID'}) wizardColor1: c.pct({title: 'Wizard Clothes Color'}) @@ -187,7 +187,7 @@ _.extend UserSchema.properties, phoneScreenFilter: title: 'Phone screen filter values' type: 'array' - items: + items: type: 'boolean' schoolFilter: title: 'School filter values' @@ -195,32 +195,32 @@ _.extend UserSchema.properties, items: type: schoolFilter.type enum: schoolFilter.enum - locationFilter: + locationFilter: title: 'Location filter values' type: 'array' items: type: locationFilter.type enum: locationFilter.enum - roleFilter: + roleFilter: title: 'Role filter values' type: 'array' items: type: roleFilter.type enum: roleFilter.enum - seniorityFilter: + seniorityFilter: title: 'Seniority filter values' type: 'array' items: type: roleFilter.type enum: seniorityFilter.enum - visa: + visa: title: 'Visa filter values' type: 'array' items: type: visa.type enum: visa.enum }) - + points: {type: 'number'} activity: {type: 'object', description: 'Summary statistics about user activity', additionalProperties: c.activity} stats: c.object {additionalProperties: false},