X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=examples%2Fbiojson-doc%2Ftests%2Finvoice.json;fp=examples%2Fbiojson-doc%2Ftests%2Finvoice.json;h=6af4ed4ed89252bd886abfa5d13705711a43eb28;hb=9623cea766a766683243235557ad48e6f7659e6a;hp=0000000000000000000000000000000000000000;hpb=6066400ed6b0fe288ebbea82389f59838a534706;p=jalview.git diff --git a/examples/biojson-doc/tests/invoice.json b/examples/biojson-doc/tests/invoice.json new file mode 100755 index 0000000..6af4ed4 --- /dev/null +++ b/examples/biojson-doc/tests/invoice.json @@ -0,0 +1,98 @@ +[ + { + "schema": { + "Invoice": { + "id": "Invoice", + "description": "Represents the document sent to the customer for payment.", + "properties": { + "customer": { + "description": "Who will pay?\nNot me! éàè", + "type": "string" + }, + "lines": { + "description": "Invoice content\n", + "minItems": "1", + "maxItems": "50", + "type": "array", + "items": { + "$ref": "InvoiceLine" + } + }, + "dimension": { + "description": "Total dimension of the order ", + "$ref": "Dimension" + } + } + }, + "InvoiceLine": { + "id": "InvoiceLine", + "properties": { + "product": { + "$ref": "Product" + }, + "quantity": { + "minimum": "0", + "exclusiveMinimum": "true", + "maximum": "10", + "exclusiveMaximum": "false", + "type": "number" + } + } + }, + "Dimension": { + "id": "Dimension", + "properties": { + "width": { + "description": "Width in cm ", + "type": "number" + }, + "height": { + "description": "Height in cm ", + "type": "number" + }, + "length": { + "description": "Length in cm ", + "type": "number" + } + } + }, + "Product": { + "id": "Product", + "properties": { + "name": { + "description": "Uniquely defines the product ", + "type": "string" + }, + "dimension": { + "description": "How big it is ", + "$ref": "Dimension" + }, + "category": { + "description": "Classification ", + "$ref": "Category" + } + } + }, + "Category": { + "id": "Category", + "properties": { + "name": { + "description": "Uniquely identifies the category ", + "type": "string" + }, + "level": { + "description": "Classification level from 1 to 5 (highest) ", + "type": "number" + } + } + }, + "CategoryIndex": { + "id": "CategoryIndex", + "properties": { + "categories": {}, + "products": {}, + "sizes": {} + } + } + } + }]