{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$schema-location": "Relationship-Schema.json",
  "name": "AWS-Hosting-Relationship-Schema",
  "version": "1",
  "author": "denis",
  "description": "Relationship between Service-Unit and a Provider eg- AWS, Rackspace",
  "associated-tool": "Juju-CLI",
  "type": "object",
  "participating-entities": [
    {
      "name": "AWS-Provider-Schema",
      "version": "1",
      "role": "hosts",
      "cardinality": {
        "min-value": "1",
        "max-value": "INF"
      }
    },
    {
      "name": "Service-Unit-Schema",
      "version": "1",
      "role": "hosted by",
      "cardinality": {
        "min-value": "1",
        "max-value": "1"
      }
    }
  ],
  "properties": {
    "$schema-location": {
      "enum": [
        "ADD YOUR SCHEMA LOCATION HERE"
      ]
    },
    "author": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "participating-entities": {
      "type": "array",
      "maxItems": 2,
      "minItems": 2,
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      }
    }
  },
  "required": [
    "participating-entities"
  ]
}