{
  "openapi": "3.1.0",
  "info": {
    "title": "amrsobhy.com profile data",
    "version": "1.0.0",
    "description": "Read-only public data about Amr Sobhy — AI safety researcher, Research Staff at Sampura Research and founder of Le French News Lab. Served as static JSON documents from the personal site; no authentication, no rate limits, no write operations.",
    "contact": {
      "name": "Amr Sobhy",
      "email": "amr@frenchnewslab.org",
      "url": "https://amrsobhy.com/"
    },
    "license": {
      "name": "CC BY 4.0",
      "identifier": "CC-BY-4.0"
    }
  },
  "servers": [{ "url": "https://amrsobhy.com" }],
  "paths": {
    "/api/profile.json": {
      "get": {
        "operationId": "getProfile",
        "summary": "Get the professional profile of Amr Sobhy",
        "description": "Returns role, research focus, affiliations, education, credentials, awards, languages and external profile links.",
        "responses": {
          "200": {
            "description": "The profile document",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Profile" }
              }
            }
          }
        }
      }
    },
    "/api/publications.json": {
      "get": {
        "operationId": "listPublications",
        "summary": "List selected papers",
        "description": "Returns the selected papers shown on amrsobhy.com, newest first, with title, venue, year and canonical URL.",
        "responses": {
          "200": {
            "description": "The publication list",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/PublicationList" }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Profile": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "url": { "type": "string", "format": "uri" },
          "email": { "type": "string", "format": "email" },
          "orcid": {
            "type": "string",
            "format": "uri",
            "description": "ORCID iD as a resolvable URI.",
            "examples": ["https://orcid.org/0009-0004-5107-7574"]
          },
          "jobTitle": { "type": "string" },
          "description": { "type": "string" },
          "image": { "type": "string", "format": "uri" },
          "worksFor": {
            "type": "object",
            "properties": {
              "name": { "type": "string" },
              "url": { "type": "string", "format": "uri" }
            }
          },
          "knowsAbout": { "type": "array", "items": { "type": "string" } },
          "knowsLanguage": { "type": "array", "items": { "type": "string" } },
          "education": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "degree": { "type": "string" },
                "institution": { "type": "string" },
                "url": { "type": "string", "format": "uri" }
              }
            }
          },
          "awards": { "type": "array", "items": { "type": "string" } },
          "sameAs": {
            "type": "array",
            "items": { "type": "string", "format": "uri" }
          },
          "dateModified": { "type": "string", "format": "date-time" }
        },
        "required": ["name", "url", "jobTitle", "description"]
      },
      "PublicationList": {
        "type": "object",
        "properties": {
          "count": { "type": "integer" },
          "dateModified": { "type": "string", "format": "date-time" },
          "publications": {
            "type": "array",
            "items": { "$ref": "#/components/schemas/Publication" }
          }
        },
        "required": ["count", "publications"]
      },
      "Publication": {
        "type": "object",
        "properties": {
          "title": { "type": "string" },
          "venue": { "type": "string" },
          "year": { "type": "integer" },
          "url": { "type": "string", "format": "uri" },
          "author": { "type": "string" },
          "authorOrcid": {
            "type": "string",
            "format": "uri",
            "description": "ORCID iD of the author, as a resolvable URI."
          }
        },
        "required": ["title", "venue", "year"]
      }
    }
  }
}
