{
 "type": "object",
 "required": [
  "stamp",
  "generated",
  "assets"
 ],
 "properties": {
  "stamp": {
   "type": "string"
  },
  "generated": {
   "type": "string"
  },
  "basis_key": {
   "type": "string"
  },
  "assets": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "name",
     "class",
     "record"
    ],
    "properties": {
     "record": {
      "type": "object",
      "required": [
       "identity",
       "where",
       "why",
       "cost",
       "maintain",
       "vendor",
       "connect",
       "provenance"
      ],
      "properties": {
       "identity": {
        "type": "object",
        "properties": {
         "codes": {
          "type": "array",
          "items": {
           "type": "object",
           "required": [
            "code",
            "value"
           ],
           "properties": {
            "code": {
             "type": "string"
            },
            "value": {
             "type": [
              "string",
              "number"
             ]
            },
            "owner": {
             "type": "string"
            }
           }
          }
         }
        }
       },
       "where": {
        "type": "object"
       },
       "why": {
        "type": [
         "object",
         "string"
        ]
       },
       "cost": {
        "type": "object"
       },
       "maintain": {
        "type": "object"
       },
       "vendor": {
        "type": "object"
       },
       "connect": {
        "type": "object",
        "required": [
         "class"
        ],
        "properties": {
         "class": {
          "enum": [
           "can connect now",
           "needs a gateway",
           "no interface",
           "not stated"
          ]
         }
        }
       },
       "provenance": {
        "type": "object"
       }
      }
     }
    }
   }
  }
 },
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "urn:exploder-kit:asset-list:1",
 "title": "The asset list",
 "description": "asset-list.json: every asset with its full record, stamped as unverified until ratified."
}
