{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shapes.penny.coop/address/1.0.0/schema.json",
  "title": "Address",
  "description": "A postal address with optional address lines, town and postcode, plus a country selection.",
  "type": "object",
  "properties": {
    "addressLine1": {
      "title": "Address Line 1",
      "type": "string",
      "x-penny": {
        "field": "text",
        "input": "text"
      }
    },
    "addressLine2": {
      "title": "Address Line 2",
      "type": "string",
      "x-penny": {
        "field": "text",
        "input": "text"
      }
    },
    "town": {
      "title": "Town",
      "type": "string",
      "x-penny": {
        "field": "text",
        "input": "text"
      }
    },
    "postcode": {
      "title": "Postcode",
      "type": "string",
      "x-penny": {
        "field": "text",
        "input": "text"
      }
    },
    "country": {
      "title": "Country",
      "$ref": "https://shapes.penny.coop/country/1.0.0/schema.json",
      "x-penny": {
        "field": "country"
      }
    }
  },
  "x-penny": {
    "shape": "address",
    "version": "1.0.0",
    "source": "app/types/address.js",
    "sourceName": "address",
    "kind": "object",
    "plural": "Addresses",
    "icon": "AArrowDown",
    "defaultVisibility": "private",
    "publishable": false,
    "fieldOrder": [
      "addressLine1",
      "addressLine2",
      "town",
      "postcode",
      "country"
    ]
  }
}
