{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/drone/json-schema/drone-secret.json",
  "title": "Secret",
  "description": "An encrypted secret variable stored in Drone CI/CD.",
  "type": "object",
  "properties": {
    "namespace": { "type": "string", "description": "The organization namespace (for org-level secrets)." },
    "name": { "type": "string", "description": "The secret name, used to reference the secret in pipeline steps." },
    "data": { "type": "string", "description": "The secret value (write-only; not returned in GET responses)." },
    "pull_request": { "type": "boolean", "description": "Whether to expose the secret in pull request builds.", "default": false },
    "pull_request_push": { "type": "boolean", "description": "Whether to expose the secret in builds triggered by pushes to pull request branches.", "default": false }
  },
  "required": ["name"]
}
