json_schema: {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "title": "Agent set",
      "type": "array",
      "items": {
          "title": "Agent",
          "type": "object",
          "properties": {
              "apiVersion": {
                  "enum": [
                      "v1beta1",
                      "v1.0",
                      "v1"
                  ]
              },
              "kind": {
                  "enum": [
                      "Agent",
                      "agent"
                  ],
                  "readOnly": true
              },
              "metadata": {
                  "type": "object",
                  "properties": {
                      "name": {
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 30
                      },
                      "createdOn": {
                          "type": "string",
                          "readOnly": true
                      },
                      "modifiedOn": {
                          "type": "string",
                          "readOnly": true
                      },
                      "ref": {
                          "type": "string",
                          "readOnly": true,
                          "minLength": 3,
                          "maxLength": 24
                      }
                  },
                  "required": [
                      "name"
                  ]
              },
              "spec": {
                  "type": "object",
                  "properties": {
                      "privacy": {
                          "enum": [
                              "Private",
                              "private",
                              "None",
                              "none"
                          ]
                      },
                      "credentials": {
                          "type": "object",
                          "properties": {
                              "username": {
                                  "type": "string",
                                  "readOnly": true,
                                  "minLength": 3,
                                  "maxLength": 30
                              },
                              "secret": {
                                  "type": "string",
                                  "writeOnly": true
                              }
                          },
                          "required": [
                              "username",
                              "secret"
                          ]
                      },
                      "domains": {
                          "type": "array",
                          "items": {
                              "type": "string",
                              "readOnly": true
                          },
                          "minItems": 1,
                          "_uniqueItems": true
                      }
                  },
                  "required": [
                      "credentials",
                      "domains"
                  ]
              }
          },
          "required": [
              "apiVersion",
              "kind",
              "spec",
              "metadata"
          ]
      }
  }