summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-05-01 04:44:46 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-05-01 04:44:46 +0900
commit1903aaf351e171b3c92b2420fffd5d6eeaf1ad49 (patch)
treef3bad1e263055cabe40e8dec86c37f6b87f8160b /src/models
parentFix: mention (あなた宛て) streaming にミュートが効かない (#4823) (diff)
downloadsharkey-1903aaf351e171b3c92b2420fffd5d6eeaf1ad49.tar.gz
sharkey-1903aaf351e171b3c92b2420fffd5d6eeaf1ad49.tar.bz2
sharkey-1903aaf351e171b3c92b2420fffd5d6eeaf1ad49.zip
Improve API doc
Fix #4825
Diffstat (limited to 'src/models')
-rw-r--r--src/models/repositories/page.ts46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/models/repositories/page.ts b/src/models/repositories/page.ts
index cbe385568e..2293edbc0d 100644
--- a/src/models/repositories/page.ts
+++ b/src/models/repositories/page.ts
@@ -84,5 +84,51 @@ export const packedPageSchema = {
type: types.object,
optional: bool.false, nullable: bool.false,
properties: {
+ id: {
+ type: types.string,
+ optional: bool.false, nullable: bool.false,
+ format: 'id',
+ example: 'xxxxxxxxxx',
+ },
+ createdAt: {
+ type: types.string,
+ optional: bool.false, nullable: bool.false,
+ format: 'date-time',
+ },
+ updatedAt: {
+ type: types.string,
+ optional: bool.false, nullable: bool.false,
+ format: 'date-time',
+ },
+ title: {
+ type: types.string,
+ optional: bool.false, nullable: bool.false,
+ },
+ name: {
+ type: types.string,
+ optional: bool.false, nullable: bool.false,
+ },
+ summary: {
+ type: types.string,
+ optional: bool.false, nullable: bool.true,
+ },
+ content: {
+ type: types.array,
+ optional: bool.false, nullable: bool.false,
+ },
+ variables: {
+ type: types.array,
+ optional: bool.false, nullable: bool.false,
+ },
+ userId: {
+ type: types.string,
+ optional: bool.false, nullable: bool.false,
+ format: 'id',
+ },
+ user: {
+ type: types.object,
+ ref: 'User',
+ optional: bool.false, nullable: bool.false,
+ },
}
};