{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudtruth/json-schema/cloudtruth-import-create-request-schema.json",
  "title": "ImportCreateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudtruth-import-api-openapi.yml#/components/schemas/ImportCreateRequest",
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "description": "Project name or identifier"
    },
    "environment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Environment name or identifier"
    },
    "body": {
      "type": "string",
      "description": "Text to turn into variables"
    },
    "secrets": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Parameter names that should be secrets"
    },
    "ignore": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Parameter names to be ignored"
    },
    "add_project": {
      "type": "boolean",
      "default": true,
      "description": "Create the project (if it does not exist)"
    },
    "add_environment": {
      "type": "boolean",
      "default": true,
      "description": "Create the environment (if it does not exist)"
    },
    "add_parameters": {
      "type": "boolean",
      "default": true,
      "description": "Create the parameters (if they do not exist)"
    },
    "add_overrides": {
      "type": "boolean",
      "default": true,
      "description": "Create the environment value override (if they do not exist)"
    },
    "inherit_on_same": {
      "type": "boolean",
      "default": true,
      "description": "Skip adding a parameter override if it is the same"
    }
  },
  "required": [
    "body",
    "ignore",
    "project",
    "secrets"
  ]
}