{
  "tool": "matric-nqf4.art_colour_mix",
  "name": "Colour-mix ratio and frame area (CDU-GEN-NSC-400)",
  "answers": "The fraction of each pigment in a stated mix, and the area of a picture frame border.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "Umalusi/NSC subject catalogue, worked reference (offline reconstruction); Visual Arts row of §4 — a colour-mix ratio and a frame area",
  "endpoint": "/faculty/matric-nqf4/art_colour_mix",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "partsA",
      "partsB",
      "innerWidthCm",
      "innerHeightCm",
      "borderCm"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "partsA": {
        "type": "number",
        "description": "parts of the first pigment (> 0)",
        "minimum": 0.001,
        "maximum": 1000
      },
      "partsB": {
        "type": "number",
        "description": "parts of the second pigment (> 0)",
        "minimum": 0.001,
        "maximum": 1000
      },
      "innerWidthCm": {
        "type": "number",
        "description": "picture width (cm, > 0) (cm)",
        "minimum": 0.001,
        "maximum": 10000
      },
      "innerHeightCm": {
        "type": "number",
        "description": "picture height (cm, > 0) (cm)",
        "minimum": 0.001,
        "maximum": 10000
      },
      "borderCm": {
        "type": "number",
        "description": "frame border width (cm, ≥ 0) (cm)",
        "minimum": 0,
        "maximum": 1000
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "fractionA",
      "frameAreaCm2"
    ],
    "properties": {
      "fractionA": {
        "type": "number",
        "description": "fraction of pigment A (4 d.p.)"
      },
      "frameAreaCm2": {
        "type": "number",
        "description": "area of the border (cm²)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "partsA": 2,
    "partsB": 3,
    "innerWidthCm": 40,
    "innerHeightCm": 30,
    "borderCm": 5
  }
}