X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=examples%2Fbiojson-doc%2Ftests%2Fexample2.json;fp=examples%2Fbiojson-doc%2Ftests%2Fexample2.json;h=d6d69adf8e19220faebe7460aec0a66b515a3eec;hb=165e5fdcd9704bfd15243fbd41d33ca100383762;hp=0000000000000000000000000000000000000000;hpb=0fac2de2be3358820e141165c5b6b020fe965193;p=jalview.git diff --git a/examples/biojson-doc/tests/example2.json b/examples/biojson-doc/tests/example2.json new file mode 100755 index 0000000..d6d69ad --- /dev/null +++ b/examples/biojson-doc/tests/example2.json @@ -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"] + } + } + } +]