JAL-1641 biojson documentation with docson
[jalview.git] / examples / biojson-doc / tests / example2.json
diff --git a/examples/biojson-doc/tests/example2.json b/examples/biojson-doc/tests/example2.json
new file mode 100755 (executable)
index 0000000..d6d69ad
--- /dev/null
@@ -0,0 +1,49 @@
+[
+    {
+        "schema" : {
+            "$schema": "http://json-schema.org/draft-04/schema#",
+            "title": "Product set",
+            "type": "array",
+            "items": {
+                "title": "Product",
+                "type": "object",
+                "properties": {
+                    "id": {
+                        "description": "The unique identifier for a product",
+                        "type": "number"
+                    },
+                    "name": {
+                        "type": "string"
+                    },
+                    "price": {
+                        "type": "number",
+                        "minimum": 0,
+                        "exclusiveMinimum": true
+                    },
+                    "tags": {
+                        "type": "array",
+                        "items": {
+                            "type": "string"
+                        },
+                        "minItems": 1,
+                        "uniqueItems": true
+                    },
+                    "dimensions": {
+                        "type": "object",
+                        "properties": {
+                            "length": {"type": "number"},
+                            "width": {"type": "number"},
+                            "height": {"type": "number"}
+                        },
+                        "required": ["length", "width", "height"]
+                    },
+                    "warehouseLocation": {
+                        "description": "Coordinates of the warehouse with the product",
+                        "$ref": "http://localhost:8000/docson/tests/geo.json"
+                    }
+                },
+                "required": ["id", "name", "price"]
+            }
+        }
+    }
+]