{
  "$schema":     "http://json-schema.org/draft-04/schema#",
  "title":       "Environment Transports",
  "description": "Information about the Resource API Transports in a Puppet code environment",
  "type":        "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "description": "The name of the environment queried",
      "type": "string"
    },
    "transports": {
      "description": "A list of available transports for this environment",
      "type": "array",
      "items": {
        "type": "object",
        "additonalProperties": false,
        "properties": {
          "name": {
            "description": "The machine readable name of the transport",
            "type": "string"
          },
          "desc": {
            "description": "The human readable description of the transport this schema specifies",
            "type": "string"
          },
          "connection_info": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "required": ["type", "desc"],
              "properties": {
                "type": {
                  "description": "The PCore type of the connection info property",
                  "type": "string"
                },
                "desc": {
                  "description": "The description of the connection info property",
                  "type": "string"
                },
                "sensitive": {
                  "description": "Whether or not the connection info property should be considered sensitive",
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    }
  }
}
