{
  "openapi": "3.1.0",
  "info": {
    "title": "Keith Mitchell public profile API",
    "version": "1.0.0",
    "summary": "Read-only JSON for the public resume site.",
    "description": "GET-only profile and experience documents. Errors are JSON. CORS allows any origin. The API does not accept or store messages, and it does not publish a phone number or street address."
  },
  "servers": [
    {
      "url": "https://keithmitchell.dev"
    }
  ],
  "paths": {
    "/api/v1/profile": {
      "get": {
        "operationId": "getProfile",
        "summary": "Public profile",
        "responses": {
          "200": {
            "description": "Profile JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/experience": {
      "get": {
        "operationId": "getExperience",
        "summary": "Experience, education, skills, and labeled public repositories",
        "responses": {
          "200": {
            "description": "Experience JSON",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Experience"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "CareerCount": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "label",
          "years",
          "display",
          "since",
          "note"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "years": {
            "type": "integer"
          },
          "display": {
            "type": "string"
          },
          "since": {
            "type": "string",
            "format": "date"
          },
          "note": {
            "type": "string"
          }
        }
      },
      "Profile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "url",
          "email",
          "sameAs",
          "knowsAbout",
          "lastUpdated"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "email": {
            "type": "string"
          },
          "emailStatus": {
            "type": "string"
          },
          "jobTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "summary": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sameAs": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "knowsAbout": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "knowsAboutNote": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "yearsInSoftware": {
            "$ref": "#/components/schemas/CareerCount"
          },
          "yearsInEnterpriseSaas": {
            "$ref": "#/components/schemas/CareerCount"
          },
          "worksFor": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "note": {
                "type": "string"
              }
            }
          },
          "alumniOf": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "credential": {
                  "type": "string"
                },
                "years": {
                  "type": "string"
                }
              }
            }
          },
          "lastUpdated": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "Experience": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "experience",
          "education",
          "skills",
          "publicRepositories",
          "lastUpdated"
        ],
        "properties": {
          "experience": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "education": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "skills": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "publicRepositories": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "notes": {
            "type": "object"
          },
          "lastUpdated": {
            "type": "string",
            "format": "date"
          }
        }
      }
    }
  }
}