{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "http://chameleon-notation/field-rating.json#",
  "title": "Rating field",
  "description": "Schema defines rating field",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": ["rating"]
    },
    "icon": {
      "type": "string"
    },
    "label": {
      "$ref": "field-base.json#/definitions/label"
    },
    "maxRating": {
      "type": "number",
      "maximum": 10
    },
    "name": {
      "$ref": "field-base.json#/definitions/name"
    },
    "ratingInfo": {
      "type": ["boolean", "null"]
    },
    "validation": {
      "$ref": "field-base.json#/definitions/validation"
    },
    "value": {
      "type": ["number", "null"]
    }
  },
  "required": ["type"]
}
