{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-sbomgenerate-request-schema.json",
  "title": "SBOMGenerateRequest",
  "description": "Body for POST /sbom/generate.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-sbom-api-openapi.yml#/components/schemas/SBOMGenerateRequest",
  "properties": {
    "sbom_format": {
      "type": "string",
      "title": "Sbom Format",
      "description": "Output format: 'cyclonedx-json' or 'spdx-json'.",
      "default": "cyclonedx-json"
    },
    "source": {
      "type": "string",
      "title": "Source",
      "description": "Package source label (pip, npm, requirements.txt, etc.).",
      "default": "pip"
    },
    "run_scan": {
      "type": "boolean",
      "title": "Run Scan",
      "description": "Run vulnerability scanning (osv-scanner or grype) after generation.",
      "default": true
    },
    "block_on_critical": {
      "type": "boolean",
      "title": "Block On Critical",
      "description": "Raise 422 when critical vulnerabilities are found.",
      "default": true
    }
  },
  "type": "object"
}