From 0ad35b9b50dfaa1083f3f5acc633ec769bc10e37 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Sun, 18 Apr 2021 16:25:48 +0400 Subject: Initial commit --- schemas/post.json | 10 ++++++++++ schemas/profile.json | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 schemas/post.json create mode 100644 schemas/profile.json (limited to 'schemas') diff --git a/schemas/post.json b/schemas/post.json new file mode 100644 index 0000000..f427dd7 --- /dev/null +++ b/schemas/post.json @@ -0,0 +1,10 @@ +{ + "type": "object", + "properties": { + "id": { "type": "integer" }, + "title": { "type": "string" }, + "body": { "type": "string" }, + "published": { "type": "boolean" } + }, + "required": ["id", "title", "body", "published"] +} diff --git a/schemas/profile.json b/schemas/profile.json new file mode 100644 index 0000000..ff7b087 --- /dev/null +++ b/schemas/profile.json @@ -0,0 +1,11 @@ +{ + "type": "object", + "properties": { + "tg_id": { "type": "integer" }, + "fullname": { "type": "string" }, + "username": { "type": "string" }, + "is_admin": { "type": "boolean" }, + "is_hidden": { "type": "boolean" } + }, + "required": ["tg_id", "fullname", "username", "is_admin", "is_hidden"] +} -- cgit v1.2.3