{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/specky-space/json-schema/specky-space-engineering-rule-request-schema.json",
  "title": "EngineeringRuleRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/specky-space-api-openapi.json#/components/schemas/EngineeringRuleRequest",
  "type": "object",
  "required": [
    "statement"
  ],
  "properties": {
    "statement": {
      "type": "string",
      "maxLength": 1000,
      "description": "Rule statement. Start with MUST, SHOULD, or MAY when possible."
    },
    "level": {
      "type": "string",
      "enum": [
        "mandatory",
        "recommended",
        "optional"
      ]
    },
    "collection": {
      "type": "string",
      "maxLength": 120
    },
    "tags": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "languages": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "frameworks": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "keywords": {
      "type": "array",
      "maxItems": 30,
      "items": {
        "type": "string"
      }
    },
    "must_include_files": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "must_not_include_files": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "provenance": {
      "type": "string",
      "maxLength": 300
    },
    "enabled": {
      "type": "boolean",
      "default": true
    }
  }
}