|
|
@ -22,7 +22,18 @@ export const postSchema: JSONSchema = { |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
export const userSchema: JSONSchema = { |
|
|
|
export const awardSchema: JSONSchema = { |
|
|
|
type: 'object', |
|
|
|
properties: { |
|
|
|
userId: { type: 'string' }, |
|
|
|
imageUrl: { type: 'string' }, |
|
|
|
text: { type: 'string' }, |
|
|
|
userText: { type: 'string' }, |
|
|
|
created: { type: 'number' }, |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
export const groupListingSchema: JSONSchema = { |
|
|
|
type: 'object', |
|
|
|
properties: { |
|
|
|
id: { type: 'string' }, |
|
|
@ -30,16 +41,35 @@ export const userSchema: JSONSchema = { |
|
|
|
about: { type: 'string' }, |
|
|
|
imageUrl: { type: 'string' }, |
|
|
|
coverImageUrl: { type: 'string' }, |
|
|
|
group: { |
|
|
|
type: 'object', |
|
|
|
properties: { |
|
|
|
id: { type: 'string' }, |
|
|
|
name: { type: 'string' }, |
|
|
|
iconImageUrl: { type: 'string' }, |
|
|
|
}, |
|
|
|
iconImageUrl: { type: 'string' }, |
|
|
|
requiresApproval: { type: 'boolean' }, |
|
|
|
members: { type: 'number' }, |
|
|
|
posts: { type: 'number' }, |
|
|
|
awards: { type: 'number' }, |
|
|
|
points: { type: 'number' }, |
|
|
|
created: { type: 'number' }, |
|
|
|
membership: { type: 'string' }, |
|
|
|
latestAwards: { |
|
|
|
type: 'array', |
|
|
|
items: awardSchema, |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
export const userSchema: JSONSchema = { |
|
|
|
type: 'object', |
|
|
|
properties: { |
|
|
|
id: { type: 'string' }, |
|
|
|
name: { type: 'string' }, |
|
|
|
about: { type: 'string' }, |
|
|
|
imageUrl: { type: 'string' }, |
|
|
|
coverImageUrl: { type: 'string' }, |
|
|
|
group: groupListingSchema, |
|
|
|
subscription: { type: 'string' }, |
|
|
|
membership: { type: 'string' }, |
|
|
|
posts: { type: 'number' }, |
|
|
|
awards: { type: 'number' }, |
|
|
|
points: { type: 'number' }, |
|
|
|
created: { type: 'number' }, |
|
|
|
}, |
|
|
|
} |
|
|
@ -85,52 +115,14 @@ export const selfSchema: JSONSchema = { |
|
|
|
about: { type: 'string' }, |
|
|
|
imageUrl: { type: 'string' }, |
|
|
|
coverImageUrl: { type: 'string' }, |
|
|
|
group: { |
|
|
|
type: 'object', |
|
|
|
properties: { |
|
|
|
id: { type: 'string' }, |
|
|
|
name: { type: 'string' }, |
|
|
|
iconImageUrl: { type: 'string' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
group: groupListingSchema, |
|
|
|
requiresApproval: { type: 'boolean' }, |
|
|
|
privacy: { type: 'string' }, |
|
|
|
membership: { type: 'string' }, |
|
|
|
created: { type: 'number' }, |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
export const awardSchema: JSONSchema = { |
|
|
|
type: 'object', |
|
|
|
properties: { |
|
|
|
userId: { type: 'string' }, |
|
|
|
imageUrl: { type: 'string' }, |
|
|
|
text: { type: 'string' }, |
|
|
|
userText: { type: 'string' }, |
|
|
|
created: { type: 'number' }, |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
export const groupListingSchema: JSONSchema = { |
|
|
|
type: 'object', |
|
|
|
properties: { |
|
|
|
id: { type: 'string' }, |
|
|
|
name: { type: 'string' }, |
|
|
|
about: { type: 'string' }, |
|
|
|
imageUrl: { type: 'string' }, |
|
|
|
coverImageUrl: { type: 'string' }, |
|
|
|
iconImageUrl: { type: 'string' }, |
|
|
|
requiresApproval: { type: 'boolean' }, |
|
|
|
members: { type: 'number' }, |
|
|
|
posts: { type: 'number' }, |
|
|
|
awards: { type: 'number' }, |
|
|
|
points: { type: 'number' }, |
|
|
|
created: { type: 'number' }, |
|
|
|
membership: { type: 'string' }, |
|
|
|
latestAwards: { |
|
|
|
type: 'array', |
|
|
|
items: awardSchema, |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|