aboutsummaryrefslogtreecommitdiff
path: root/samples/JSON/schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'samples/JSON/schema.json')
-rw-r--r--samples/JSON/schema.json47
1 files changed, 47 insertions, 0 deletions
diff --git a/samples/JSON/schema.json b/samples/JSON/schema.json
new file mode 100644
index 0000000..ee580cc
--- /dev/null
+++ b/samples/JSON/schema.json
@@ -0,0 +1,47 @@
+{
+ "name":"Product",
+ "properties":
+ {
+ "id":
+ {
+ "type":"number",
+ "description":"Product identifier",
+ "required":true
+ },
+ "name":
+ {
+ "type":"string",
+ "description":"Name of the product",
+ "required":true
+ },
+ "price":
+ {
+ "type":"number",
+ "minimum":0,
+ "required":true
+ },
+ "tags":
+ {
+ "type":"array",
+ "items":
+ {
+ "type":"string"
+ }
+ },
+ "stock":
+ {
+ "type":"object",
+ "properties":
+ {
+ "warehouse":
+ {
+ "type":"number"
+ },
+ "retail":
+ {
+ "type":"number"
+ }
+ }
+ }
+ }
+} \ No newline at end of file