{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openchargemap.org/schema/UserProfile.json",
  "title": "UserProfile",
  "description": "Full user profile, including non-public fields such as Email Address",
  "type": "object",
  "x-examples": {
    "example-userprofile": {
      "ID": 1000,
      "Username": "Joe Bloggs",
      "Profile": "Example Open Charge Map user. \ud83e\udd18",
      "Location": "San Francisco, US",
      "WebsiteURL": "https://openchargemap.org",
      "ReputationPoints": 2008,
      "Permissions": "{\"Permissions\":[{\"Level\":100},{\"Level\":1000}],\"LegacyPermissions\":\"[CountryLevel_Editor=All];[Administrator=true];\"}",
      "DateCreated": "2011-09-28T15:11:00",
      "DateLastLogin": "2021-11-09T07:49:00",
      "IsProfilePublic": true,
      "Latitude": -31,
      "Longitude": 115,
      "EmailAddress": "example@example.com",
      "ProfileImageURL": "https://www.gravatar.com/avatar/examplef?s=80&d=robohash"
    }
  },
  "properties": {
    "ID": {
      "type": "number"
    },
    "Username": {
      "type": "string",
      "minLength": 1
    },
    "Profile": {
      "type": "string",
      "minLength": 1
    },
    "Location": {
      "type": "string",
      "minLength": 1
    },
    "WebsiteURL": {
      "type": "string",
      "minLength": 1
    },
    "ReputationPoints": {
      "type": "number"
    },
    "Permissions": {
      "type": "string",
      "minLength": 1
    },
    "DateCreated": {
      "type": "string",
      "minLength": 1
    },
    "DateLastLogin": {
      "type": "string",
      "minLength": 1
    },
    "IsProfilePublic": {
      "type": "boolean"
    },
    "Latitude": {
      "type": "number"
    },
    "Longitude": {
      "type": "number"
    },
    "EmailAddress": {
      "type": "string",
      "minLength": 1
    },
    "ProfileImageURL": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "ID",
    "Username",
    "DateCreated",
    "IsProfilePublic"
  ]
}