Reference: Config Validation

Overview

This documents the output produced by the validate config command.

JSON Format

{
  "valid": true,
  "error": "",
  "detail": {
    "llm": {
      "present": true,
      "valid": true,
      "error": ""
    },
    "github": {
      "present": true,
      "valid": true,
      "error": ""
    },
    "extract": {
      "present": true,
      "disabled": true,
      "valid": true,
      "error": ""
    },
    "check": {
      "present": true,
      "disabled": true,
      "valid": true,
      "error": ""
    },
    "audit": {
      "present": true,
      "disabled": true,
      "valid": true,
      "error": ""
    }
  }
}

Fields

A list of fields, their types, and a description of each.

FieldTypeDescription
validBooleanTrue if the entire configuration is valid
errorStringThe validation error, if any
detailObjectDetails about each section of the config
detail.llmObjectDetails about the llm section
detail.llm.presentBooleanTrue if the llm.provider is set
detail.llm.validBooleanTrue if the llm section is valid
detail.llm.errorStringThe validation error for the llm section, if any
detail.githubObjectDetails about the github section
detail.github.presentBooleanTrue if the github.token is set
detail.github.validBooleanTrue if the github section is valid
detail.github.errorStringThe validation error for the github section, if any
detail.extractObjectDetails about the extract section
detail.extract.presentBooleanTrue if the extract section is present
detail.extract.disabledBooleanTrue if extract.disabled is true
detail.extract.validBooleanTrue if the extract section is valid
detail.extract.errorStringThe validation error for the extract section, if any
detail.checkObjectDetails about the check section
detail.check.presentBooleanTrue if the check section is present
detail.check.disabledBooleanTrue if check.disabled is true
detail.check.validBooleanTrue if the check section is valid
detail.check.errorStringThe validation error for the check section, if any
detail.auditObjectDetails about the audit section
detail.audit.presentBooleanTrue if the audit section is present
detail.audit.disabledBooleanTrue if audit.disabled is true
detail.audit.validBooleanTrue if the audit section is valid
detail.audit.errorStringThe validation error for the audit section, if any