summaryrefslogtreecommitdiff
path: root/schemas/post.json
diff options
context:
space:
mode:
Diffstat (limited to 'schemas/post.json')
-rw-r--r--schemas/post.json10
1 files changed, 10 insertions, 0 deletions
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"]
+}