{
  "description": "Script is the Schema for the scripts API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "ScriptSpec defines the desired state of Script",
      "properties": {
        "content": {
          "description": "script content as string (content depends from executor)",
          "type": [
            "string",
            "null"
          ]
        },
        "input-type": {
          "description": "script content type can be:  - direct content - created from file, - git repo directory checkout in case when test is some kind of project or have more than one file,",
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "description": "script execution custom name",
          "type": [
            "string",
            "null"
          ]
        },
        "params": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "execution params passed to executor",
          "type": [
            "object",
            "null"
          ]
        },
        "repository": {
          "additionalProperties": false,
          "description": "repository details if exists",
          "properties": {
            "branch": {
              "description": "branch/tag name for checkout",
              "type": "string"
            },
            "path": {
              "description": "if needed we can checkout particular path (dir or file) in case of BIG/mono repositories",
              "type": [
                "string",
                "null"
              ]
            },
            "token": {
              "description": "git auth token for private repositories",
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "description": "Type_ repository type",
              "type": "string"
            },
            "uri": {
              "description": "Uri of content file or git directory",
              "type": "string"
            },
            "username": {
              "description": "git auth username for private repositories",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "branch",
            "type",
            "uri"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "type": {
          "description": "script type",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "ScriptStatus defines the observed state of Script",
      "properties": {
        "executions_count": {
          "type": [
            "integer",
            "null"
          ]
        },
        "last_execution": {
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}