{

"components": {
  "schemas": {
    "request": {
      "post": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "vendor": {
            "type": "object",
            "required": ["name", "vendor_type"],
            "properties": { "$ref": "vendor.json#/components/schemas/request_properties" }
          }
        }
      },
      "put": {
        "type": "object",
        "xml": { "name": "/" },
        "properties": {
          "vendor": {
            "type": "object",
            "properties": { "$ref": "vendor.json#/components/schemas/request_properties" }
          }
        }
      }
    },
    "request_properties": {
      "name": { "type": "string", "example": "SolarWinds" },
      "vendor_type": { "$ref": "../../components.json#/components/request/schemas/association_by_name", "example": { "name": "General Business Vendor" } },
      "url": { "type": "string", "example": "www.solarwinds.com" },
      "contact_name": { "type": "string", "example": "Support" },
      "contact_email": { "type": "string", "example": "support@solarwinds.com" },
      "contact_phone": { "type": "string", "example": "+000000000" },
      "note": { "type": "string", "example": "Notes" },
      "address": { "type": "string", "example": "Address description" },
      "city": { "type": "string", "example": "Cary" },
      "state": { "type": "string", "example": "NC" },
      "zip": { "type": "string", "example": "USA 11111" },
      "telephone": { "type": "string", "example": "+000000000" }
    },
    "response": {
      "type": "object",
      "xml": { "name": "/", "wrapped": true },
      "properties": {
        "vendor": {
          "type": "object",
          "properties": {
            "id": { "$ref": "../../components.json#/components/response/schemas/id" },
            "name": { "type": "string", "example": "SolarWinds" },
            "vendor_type": { "type": "object", "properties": { "id": { "$ref": "../../components.json#/components/response/schemas/id" }, "name": { "type": "string", "example": "General Business Vendor" } } },
            "url": { "type": "string", "example": "www.solarwinds.com" },
            "contact_name": { "type": "string", "example": "Support" },
            "contact_email": { "type": "string", "example": "support@solarwinds.com" },
            "contact_phone": { "type": "string", "example": "+000000000" },
            "note": { "type": "string", "example": "Notes" },
            "address": { "type": "string", "example": "Address description" },
            "city": { "type": "string", "example": "Cary" },
            "state": { "type": "string", "example": "NC" },
            "zip": { "type": "string", "example": "USA 11111" },
            "telephone": { "type": "string", "example": "+000000000" }
          }
        }
      }
    }
  }
}

}