{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chnlsync-com/json-schema/chnlsync-com-rating-input-schema.json",
  "title": "RatingInput",
  "description": "The buyer's one-question rating after an install or a ticket.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chnlsync-com-customer-outcomes-api-openapi.yml#/components/schemas/RatingInput",
  "properties": {
    "source_type": {
      "type": "string",
      "enum": [
        "install",
        "ticket"
      ],
      "title": "Source Type"
    },
    "source_id": {
      "type": "string",
      "format": "uuid",
      "title": "Source Id"
    },
    "rating": {
      "type": "integer",
      "maximum": 5.0,
      "minimum": 1.0,
      "title": "Rating"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "source_type",
    "source_id",
    "rating"
  ]
}