{
	"$schema": "http://json-schema.org/draft-03/schema#",
	"title": "Product prices update schema",
	"description": "A schema for updating a specific product price.",
	"type": "object",
	"restdocs": "http://restdocs.e-conomic.com/#put-products-productnumber-product-prices-currencycode",
	"properties": {
		"price": {
			"required": true,
			"type": "number",
			"maxDecimal": 2,
			"filterable": true,
			"sortable": true,
			"description": "The price of the product."
		},
		"product": {
			"type": "object",
			"description": "A reference to the product this product price belongs to.",
			"properties": {
				"productNumber": {
					"type": "string",
					"minLength": 1,
					"maxLength": 25,
					"filterable": true,
					"sortable": true,
					"description": "Unique alphanumeric product number."
				},
				"self": {
					"type": "string",
					"description": "A unique reference to the product resource."
				}
			}
		},
		"currency": {
			"type": "object",
			"description": "A reference to the currency this product price is in.",
			"properties": {
				"code": {
					"type": "string",
					"pattern": "[a-zA-Z]{3}",
					"filterable": true,
					"sortable": true,
					"required": true,
					"description": "The ISO 4217 currency code of the invoice."
				},
				"self": {
					"type": "string",
					"format": "uri",
					"description": "A unique reference to the currency resource."
				}
			}
		},
		"self": {
			"type": "string",
			"format": "uri",
			"description": "A unique reference to this product-prices resource."
		}
	}
}
