Sha256: 9b30c8f2b54c10f30c75367b1b5a406f38af44adec5dd6081dc068e4bb341412

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

{ "type":"object",
  "title": "Item",
  "name": "item",
  "description": "An item belonging to a document",
  "properties":{
    "title":{
      "description": "Product name or item title",
      "type":"string",
      "required": true
    },
    "description":{
      "description": "Item or product description",
      "type":"string"
    },
    "unit":{
      "description": "Unit name",
      "type":"string"
    },
    "quantity":{
      "description": "Quantity for this item",
      "type":"number",
      "required": true
    },
    "unit_price":{
      "description": "Single price for one item",
      "type":"array",
      "properties":{"$ref":"./amount.json#properties"},
      "required": true
    },
    "total":{
      "description": "Totals net and gross prices for the item",
      "type":"object",
      "properties":{"$ref":"./amount.json#properties"},
      "required": true
    },
    "taxes":{
      "description": "Taxes applied to the item",
      "type":"array",
      "properties":{"$ref":"./tax.json#properties"}
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doctag_json_schema-1.0.2 schema/item.json
doctag_json_schema-1.0.1 schema/item.json