{
  "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": {
          "additionalProperties": false,
          "description": "script content object",
          "properties": {
            "data": {
              "description": "script content body",
              "type": [
                "string",
                "null"
              ]
            },
            "repository": {
              "additionalProperties": false,
              "description": "repository of script content",
              "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": "VCS 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"
              ]
            },
            "type": {
              "description": "script type",
              "type": [
                "string",
                "null"
              ]
            },
            "uri": {
              "description": "uri of script content",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "name": {
          "description": "script execution custom name",
          "type": [
            "string",
            "null"
          ]
        },
        "params": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "execution params passed to executor",
          "type": [
            "object",
            "null"
          ]
        },
        "tags": {
          "description": "script 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"
}