From b1f148b5930ac39e4db0e6778466bbd77ce96630 Mon Sep 17 00:00:00 2001 From: sartography-automated-committer Date: Wed, 21 Feb 2024 18:44:15 +0000 Subject: [PATCH] User: dan@sartography.com clicked save for examples/2-in-depth/data-stores/key-value-data-store/addmovie-schema.json --- .../key-value-data-store/addmovie-schema.json | 45 ++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/examples/2-in-depth/data-stores/key-value-data-store/addmovie-schema.json b/examples/2-in-depth/data-stores/key-value-data-store/addmovie-schema.json index 9e26dfee..0606e8e6 100644 --- a/examples/2-in-depth/data-stores/key-value-data-store/addmovie-schema.json +++ b/examples/2-in-depth/data-stores/key-value-data-store/addmovie-schema.json @@ -1 +1,44 @@ -{} \ No newline at end of file + +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "Title of the movie" + }, + "characters": { + "type": "array", + "description": "List of characters in the movie", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the character" + }, + "actor": { + "type": "string", + "description": "Actor who portrays the character" + }, + "description": { + "type": "string", + "description": "Brief description of the character" + } + }, + "required": [ + "name", + "actor", + "description" + ] + } + }, + "required": [ + "title", + "characters" + ] + } + } +}