{
  "openapi": "3.1.0",
  "info": {
    "title": "Resume API",
    "version": "evolving",
    "summary": "A resume as linked, cacheable resources.",
    "description": "Read access is public; writes need a bearer token and are only enabled on the pre-release instance.\n\n## Versioning & evolution\nThere is no version in the URIs. A resource keeps its address for as long as it exists, and the API evolves compatibly instead:\n\n- **Additive changes only.** New fields and new links may appear; existing ones are not removed or repurposed. Clients should ignore what they don't recognize.\n- **Follow links, don't build URLs.** Every representation carries `_links` (HAL-style). Start at the entry point and navigate.\n- **If a breaking change is ever unavoidable**, it will be offered as a new media type that clients request explicitly via `Accept`, e.g. `application/vnd.resume+json; version=2`, alongside the current one.\n- **Retirement is announced in-band** with the `Deprecation` and `Sunset` response headers well before anything goes away.\n\n## Idempotency: PUT replaces, POST updates\nMethods are used for what they promise, and the difference is deliberate:\n\n- **PUT is idempotent create-or-replace.** Send the complete document; the resource becomes exactly that. Sending the same PUT once or ten times leaves the same result, so it's always safe to retry.\n- **POST to an item is a partial update.** Send only the properties to change, e.g. `POST /skills/php` with `{\"featured\": true}`. The changes are merged into the current state (JSON Merge Patch, RFC 7396: objects merge, arrays and scalars replace, `null` clears a field) and then validated like a PUT. POST makes no idempotency promise, so don't blindly retry it.\n- **Guard updates with `If-Match`.** Send the `ETag` you read; if the resource changed since, you get `412 Precondition Failed` instead of overwriting someone else's change.\n- **POST to a collection** (`/engagements`, `/education`) creates a new item with a server-assigned id and returns `201` with `Location`.\n- **DELETE** removes the item; repeating it changes nothing further (the second one answers 404).\n\n## Conventions\n- Dates are ISO 8601 at the precision they're known: `2011`, `2011-02` or `2011-02-15`.\n- Text fields that hold prose (`summary`, `intro`, bullet `text`) are a Markdown subset.\n- Responses carry a strong `ETag`; send `If-None-Match` to get `304 Not Modified`.\n- Errors are RFC 9457 problem documents (`application/problem+json`).\n- Writes accept the same documents reads return (\"PUT what you GET\"); read-only fields are ignored. Omitting `visible` means visible.\n- Authenticated readers also see items whose `visible` flag is off.",
    "license": { "name": "Same as the repository" }
  },
  "servers": [{ "url": "/api" }],
  "security": [{}],
  "tags": [
    { "name": "entry" }, { "name": "profile" }, { "name": "sections" }, { "name": "organizations" },
    { "name": "engagements" }, { "name": "roles" }, { "name": "skills" }, { "name": "patents" }, { "name": "education" }
  ],
  "paths": {
    "/": {
      "get": { "tags": ["entry"], "summary": "API entry point: links to everything", "operationId": "getRoot",
        "responses": { "200": { "description": "Entry point", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Root" } } } } } }
    },
    "/openapi.json": {
      "get": { "tags": ["entry"], "summary": "OpenAPI description of this API", "operationId": "getOpenAPI",
        "responses": { "200": { "description": "This document", "content": { "application/json": {} } } } }
    },
    "/profile": {
      "get": { "tags": ["profile"], "summary": "Name, headline, summary, external links and highlights", "operationId": "getProfile",
        "responses": { "200": { "$ref": "#/components/responses/Profile" }, "304": { "$ref": "#/components/responses/NotModified" }, "404": { "$ref": "#/components/responses/Problem" } } },
      "put": { "tags": ["profile"], "summary": "Replace the profile (with its links and highlights)", "operationId": "putProfile", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Profile" } } } },
        "responses": { "200": { "$ref": "#/components/responses/Profile" }, "401": { "$ref": "#/components/responses/Problem" }, "403": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "post": { "tags": ["profile"], "summary": "Update some properties of the profile (partial: send only what changes)", "operationId": "updateProfile", "security": [{ "bearer": [] }],
        "description": "Partial, non-idempotent update: send only the properties to change. See Idempotency in the API description.",
        "parameters": [{ "$ref": "#/components/parameters/IfMatch" }], "requestBody": { "$ref": "#/components/requestBodies/MergePatch" },
        "responses": { "200": { "description": "Updated; the full new representation" }, "404": { "$ref": "#/components/responses/Problem" }, "412": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } }
    },
    "/sections": {
      "get": { "tags": ["sections"], "summary": "Page sections and their intros", "operationId": "listSections",
        "responses": { "200": { "description": "Sections", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SectionList" } } } } } }
    },
    "/sections/{slug}": {
      "parameters": [{ "$ref": "#/components/parameters/slug" }],
      "get": { "tags": ["sections"], "summary": "One section", "operationId": "getSection",
        "responses": { "200": { "description": "Section", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Section" } } } }, "404": { "$ref": "#/components/responses/Problem" } } },
      "put": { "tags": ["sections"], "summary": "Create or replace a section", "operationId": "putSection", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Section" } } } },
        "responses": { "200": { "description": "Replaced" }, "201": { "description": "Created" }, "401": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "post": { "tags": ["sections"], "summary": "Update some properties of a section (partial: send only what changes)", "operationId": "updateSection", "security": [{ "bearer": [] }],
        "description": "Partial, non-idempotent update: send only the properties to change. See Idempotency in the API description.",
        "parameters": [{ "$ref": "#/components/parameters/IfMatch" }], "requestBody": { "$ref": "#/components/requestBodies/MergePatch" },
        "responses": { "200": { "description": "Updated; the full new representation" }, "404": { "$ref": "#/components/responses/Problem" }, "412": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "delete": { "tags": ["sections"], "summary": "Delete a section", "operationId": "deleteSection", "security": [{ "bearer": [] }],
        "responses": { "204": { "description": "Deleted" }, "404": { "$ref": "#/components/responses/Problem" } } }
    },
    "/organizations": {
      "get": { "tags": ["organizations"], "summary": "Employers and companies", "operationId": "listOrganizations",
        "responses": { "200": { "description": "Organizations", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrganizationList" } } } } } }
    },
    "/organizations/{slug}": {
      "parameters": [{ "$ref": "#/components/parameters/slug" }],
      "get": { "tags": ["organizations"], "summary": "One organization with its engagements", "operationId": "getOrganization",
        "responses": { "200": { "description": "Organization", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Organization" } } } }, "404": { "$ref": "#/components/responses/Problem" } } },
      "put": { "tags": ["organizations"], "summary": "Create or replace an organization", "operationId": "putOrganization", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Organization" } } } },
        "responses": { "200": { "description": "Replaced" }, "201": { "description": "Created" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "post": { "tags": ["organizations"], "summary": "Update some properties of an organization (partial: send only what changes)", "operationId": "updateOrganization", "security": [{ "bearer": [] }],
        "description": "Partial, non-idempotent update: send only the properties to change. See Idempotency in the API description.",
        "parameters": [{ "$ref": "#/components/parameters/IfMatch" }], "requestBody": { "$ref": "#/components/requestBodies/MergePatch" },
        "responses": { "200": { "description": "Updated; the full new representation" }, "404": { "$ref": "#/components/responses/Problem" }, "412": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "delete": { "tags": ["organizations"], "summary": "Delete an organization (must have no engagements)", "operationId": "deleteOrganization", "security": [{ "bearer": [] }],
        "responses": { "204": { "description": "Deleted" }, "404": { "$ref": "#/components/responses/Problem" }, "409": { "$ref": "#/components/responses/Problem" } } }
    },
    "/engagements": {
      "get": { "tags": ["engagements"], "summary": "Continuous stints at organizations", "operationId": "listEngagements",
        "responses": { "200": { "description": "Engagements", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EngagementList" } } } } } },
      "post": { "tags": ["engagements"], "summary": "Create an engagement", "operationId": "createEngagement", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Engagement" } } } },
        "responses": { "201": { "description": "Created; Location gives its URL" }, "422": { "$ref": "#/components/responses/Problem" } } }
    },
    "/engagements/{id}": {
      "parameters": [{ "$ref": "#/components/parameters/id" }],
      "get": { "tags": ["engagements"], "summary": "One engagement with its roles", "operationId": "getEngagement",
        "responses": { "200": { "description": "Engagement", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Engagement" } } } }, "404": { "$ref": "#/components/responses/Problem" } } },
      "put": { "tags": ["engagements"], "summary": "Replace an engagement", "operationId": "putEngagement", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Engagement" } } } },
        "responses": { "200": { "description": "Replaced" }, "404": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "post": { "tags": ["engagements"], "summary": "Update some properties of an engagement (partial: send only what changes)", "operationId": "updateEngagement", "security": [{ "bearer": [] }],
        "description": "Partial, non-idempotent update: send only the properties to change. See Idempotency in the API description.",
        "parameters": [{ "$ref": "#/components/parameters/IfMatch" }], "requestBody": { "$ref": "#/components/requestBodies/MergePatch" },
        "responses": { "200": { "description": "Updated; the full new representation" }, "404": { "$ref": "#/components/responses/Problem" }, "412": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "delete": { "tags": ["engagements"], "summary": "Delete an engagement and its roles", "operationId": "deleteEngagement", "security": [{ "bearer": [] }],
        "responses": { "204": { "description": "Deleted" }, "404": { "$ref": "#/components/responses/Problem" } } }
    },
    "/roles": {
      "get": { "tags": ["roles"], "summary": "Roles, newest first; filter with ?skill= and ?organization=", "operationId": "listRoles",
        "parameters": [
          { "name": "skill", "in": "query", "schema": { "type": "string" }, "description": "Only roles tagged with this skill slug" },
          { "name": "organization", "in": "query", "schema": { "type": "string" }, "description": "Only roles at this organization slug" }
        ],
        "responses": { "200": { "description": "Roles", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RoleList" } } } } } }
    },
    "/roles/{slug}": {
      "parameters": [{ "$ref": "#/components/parameters/slug" }],
      "get": { "tags": ["roles"], "summary": "One role with bullets and skills", "operationId": "getRole",
        "responses": { "200": { "description": "Role", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Role" } } } }, "404": { "$ref": "#/components/responses/Problem" } } },
      "put": { "tags": ["roles"], "summary": "Create or replace a role with its bullets and skills", "operationId": "putRole", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Role" } } } },
        "responses": { "200": { "description": "Replaced" }, "201": { "description": "Created" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "post": { "tags": ["roles"], "summary": "Update some properties of a role (partial: send only what changes)", "operationId": "updateRole", "security": [{ "bearer": [] }],
        "description": "Partial, non-idempotent update: send only the properties to change. See Idempotency in the API description.",
        "parameters": [{ "$ref": "#/components/parameters/IfMatch" }], "requestBody": { "$ref": "#/components/requestBodies/MergePatch" },
        "responses": { "200": { "description": "Updated; the full new representation" }, "404": { "$ref": "#/components/responses/Problem" }, "412": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "delete": { "tags": ["roles"], "summary": "Delete a role", "operationId": "deleteRole", "security": [{ "bearer": [] }],
        "responses": { "204": { "description": "Deleted" }, "404": { "$ref": "#/components/responses/Problem" } } }
    },
    "/skills": {
      "get": { "tags": ["skills"], "summary": "Skills with role counts", "operationId": "listSkills",
        "responses": { "200": { "description": "Skills", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SkillList" } } } } } }
    },
    "/skills/{slug}": {
      "parameters": [{ "$ref": "#/components/parameters/slug" }],
      "get": { "tags": ["skills"], "summary": "One skill with the roles that used it", "operationId": "getSkill",
        "responses": { "200": { "description": "Skill", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Skill" } } } }, "404": { "$ref": "#/components/responses/Problem" } } },
      "put": { "tags": ["skills"], "summary": "Create or replace a skill", "operationId": "putSkill", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Skill" } } } },
        "responses": { "200": { "description": "Replaced" }, "201": { "description": "Created" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "post": { "tags": ["skills"], "summary": "Update some properties of a skill (partial: send only what changes)", "operationId": "updateSkill", "security": [{ "bearer": [] }],
        "description": "Partial, non-idempotent update: send only the properties to change. See Idempotency in the API description.",
        "parameters": [{ "$ref": "#/components/parameters/IfMatch" }], "requestBody": { "$ref": "#/components/requestBodies/MergePatch" },
        "responses": { "200": { "description": "Updated; the full new representation" }, "404": { "$ref": "#/components/responses/Problem" }, "412": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "delete": { "tags": ["skills"], "summary": "Delete a skill (removes its tags)", "operationId": "deleteSkill", "security": [{ "bearer": [] }],
        "responses": { "204": { "description": "Deleted" }, "404": { "$ref": "#/components/responses/Problem" } } }
    },
    "/skill-categories": {
      "get": { "tags": ["skills"], "summary": "Skill categories with their skills", "operationId": "listSkillCategories",
        "responses": { "200": { "description": "Categories", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SkillCategoryList" } } } } } }
    },
    "/skill-categories/{slug}": {
      "parameters": [{ "$ref": "#/components/parameters/slug" }],
      "get": { "tags": ["skills"], "summary": "One skill category", "operationId": "getSkillCategory",
        "responses": { "200": { "description": "Category", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SkillCategory" } } } }, "404": { "$ref": "#/components/responses/Problem" } } },
      "put": { "tags": ["skills"], "summary": "Create or replace a skill category", "operationId": "putSkillCategory", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SkillCategory" } } } },
        "responses": { "200": { "description": "Replaced" }, "201": { "description": "Created" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "post": { "tags": ["skills"], "summary": "Update some properties of a skill category (partial: send only what changes)", "operationId": "updateSkillCategory", "security": [{ "bearer": [] }],
        "description": "Partial, non-idempotent update: send only the properties to change. See Idempotency in the API description.",
        "parameters": [{ "$ref": "#/components/parameters/IfMatch" }], "requestBody": { "$ref": "#/components/requestBodies/MergePatch" },
        "responses": { "200": { "description": "Updated; the full new representation" }, "404": { "$ref": "#/components/responses/Problem" }, "412": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "delete": { "tags": ["skills"], "summary": "Delete a skill category (its skills become uncategorized)", "operationId": "deleteSkillCategory", "security": [{ "bearer": [] }],
        "responses": { "204": { "description": "Deleted" }, "404": { "$ref": "#/components/responses/Problem" } } }
    },
    "/patents": {
      "get": { "tags": ["patents"], "summary": "Patents; filter with ?status= and ?role=", "operationId": "listPatents",
        "parameters": [
          { "name": "status", "in": "query", "schema": { "enum": ["pending", "granted", "expired", "abandoned"] } },
          { "name": "role", "in": "query", "schema": { "type": "string" }, "description": "Only patents from this role slug" }
        ],
        "responses": { "200": { "description": "Patents", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PatentList" } } } } } }
    },
    "/patents/{id}": {
      "parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string", "pattern": "^[A-Za-z]{2}.+$" }, "description": "Jurisdiction + number, e.g. US1234567" }],
      "get": { "tags": ["patents"], "summary": "One patent, by jurisdiction + number (e.g. US1234567)", "operationId": "getPatent",
        "responses": { "200": { "description": "Patent", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Patent" } } } }, "404": { "$ref": "#/components/responses/Problem" } } },
      "put": { "tags": ["patents"], "summary": "Create or replace a patent", "operationId": "putPatent", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Patent" } } } },
        "responses": { "200": { "description": "Replaced" }, "201": { "description": "Created" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "post": { "tags": ["patents"], "summary": "Update some properties of a patent (partial: send only what changes)", "operationId": "updatePatent", "security": [{ "bearer": [] }],
        "description": "Partial, non-idempotent update: send only the properties to change. See Idempotency in the API description.",
        "parameters": [{ "$ref": "#/components/parameters/IfMatch" }], "requestBody": { "$ref": "#/components/requestBodies/MergePatch" },
        "responses": { "200": { "description": "Updated; the full new representation" }, "404": { "$ref": "#/components/responses/Problem" }, "412": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "delete": { "tags": ["patents"], "summary": "Delete a patent", "operationId": "deletePatent", "security": [{ "bearer": [] }],
        "responses": { "204": { "description": "Deleted" }, "404": { "$ref": "#/components/responses/Problem" } } }
    },
    "/education": {
      "get": { "tags": ["education"], "summary": "Education", "operationId": "listEducation",
        "responses": { "200": { "description": "Education", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EducationList" } } } } } },
      "post": { "tags": ["education"], "summary": "Add an education entry", "operationId": "createEducation", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Education" } } } },
        "responses": { "201": { "description": "Created; Location gives its URL" }, "422": { "$ref": "#/components/responses/Problem" } } }
    },
    "/education/{id}": {
      "parameters": [{ "$ref": "#/components/parameters/id" }],
      "get": { "tags": ["education"], "summary": "One education entry", "operationId": "getEducation",
        "responses": { "200": { "description": "Education entry", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Education" } } } }, "404": { "$ref": "#/components/responses/Problem" } } },
      "put": { "tags": ["education"], "summary": "Replace an education entry", "operationId": "putEducation", "security": [{ "bearer": [] }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Education" } } } },
        "responses": { "200": { "description": "Replaced" }, "404": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "post": { "tags": ["education"], "summary": "Update some properties of an education entry (partial: send only what changes)", "operationId": "updateEducation", "security": [{ "bearer": [] }],
        "description": "Partial, non-idempotent update: send only the properties to change. See Idempotency in the API description.",
        "parameters": [{ "$ref": "#/components/parameters/IfMatch" }], "requestBody": { "$ref": "#/components/requestBodies/MergePatch" },
        "responses": { "200": { "description": "Updated; the full new representation" }, "404": { "$ref": "#/components/responses/Problem" }, "412": { "$ref": "#/components/responses/Problem" }, "422": { "$ref": "#/components/responses/Problem" } } },
      "delete": { "tags": ["education"], "summary": "Delete an education entry", "operationId": "deleteEducation", "security": [{ "bearer": [] }],
        "responses": { "204": { "description": "Deleted" }, "404": { "$ref": "#/components/responses/Problem" } } }
    }
  },
  "components": {
    "securitySchemes": { "bearer": { "type": "http", "scheme": "bearer" } },
    "parameters": {
      "slug": { "name": "slug", "in": "path", "required": true, "schema": { "type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$" } },
      "id": { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "minimum": 1 } },
      "IfMatch": { "name": "If-Match", "in": "header", "required": false, "description": "ETag of the version you read; 412 if the resource has changed since", "schema": { "type": "string" } }
    },
    "requestBodies": {
      "MergePatch": { "required": true, "description": "Only the properties to change (RFC 7396 JSON Merge Patch: objects merge, arrays and scalars replace, null clears)",
        "content": { "application/merge-patch+json": { "schema": { "type": "object" } }, "application/json": { "schema": { "type": "object" } } } }
    },
    "responses": {
      "Profile": { "description": "Profile", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Profile" } } } },
      "NotModified": { "description": "Unchanged since the ETag you sent" },
      "Problem": { "description": "Error (RFC 9457)", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }
    },
    "schemas": {
      "PartialDate": { "type": "string", "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$", "description": "ISO 8601 at known precision: YYYY, YYYY-MM or YYYY-MM-DD", "examples": ["2011", "2011-02"] },
      "Markdown": { "type": "string", "description": "Markdown subset (links, emphasis)" },
      "Link": { "type": "object", "required": ["href"], "properties": { "href": { "type": "string" }, "templated": { "type": "boolean" } } },
      "Links": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/Link" }, "readOnly": true },
      "Problem": { "type": "object", "properties": { "type": { "type": "string" }, "title": { "type": "string" }, "status": { "type": "integer" }, "detail": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } } } },
      "Root": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "revision": { "type": "integer", "description": "Latest content revision" }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "Profile": { "type": "object", "required": ["name", "headline", "summary"], "properties": {
        "name": { "type": "string" }, "headline": { "type": "string" }, "summary": { "$ref": "#/components/schemas/Markdown" }, "location": { "type": ["string", "null"] },
        "external_links": { "type": "array", "items": { "type": "object", "required": ["label", "url"], "properties": {
          "label": { "type": "string" }, "url": { "type": "string" }, "kind": { "enum": ["profile", "contact", "website", "other"] }, "sort_order": { "type": "integer" }, "visible": { "type": "boolean", "default": true } } } },
        "highlights": { "type": "array", "items": { "type": "object", "required": ["label"], "description": "Give exactly one of value or computed", "properties": {
          "label": { "type": "string" }, "value": { "type": ["string", "null"] }, "computed": { "enum": ["career_years", "engagement_years", "patent_count", null] },
          "engagement_id": { "type": ["integer", "null"], "description": "Required when computed is engagement_years" },
          "display": { "type": "string", "readOnly": true, "description": "What to show; rounded-up years are prefixed with ~" },
          "amount": { "type": "number", "readOnly": true }, "sort_order": { "type": "integer" }, "visible": { "type": "boolean", "default": true } } } },
        "_links": { "$ref": "#/components/schemas/Links" } } },
      "Section": { "type": "object", "required": ["title"], "properties": {
        "slug": { "type": "string", "readOnly": true }, "title": { "type": "string" }, "intro": { "type": ["string", "null"] }, "sort_order": { "type": "integer" }, "visible": { "type": "boolean", "default": true },
        "print": { "enum": ["include", "omit"], "default": "include", "description": "Whether the section is in the print/PDF version of the resume." }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "OrgRef": { "type": "object", "properties": { "slug": { "type": "string" }, "name": { "type": "string" }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "RoleRef": { "type": "object", "properties": { "slug": { "type": "string" }, "title": { "type": "string" }, "start": { "$ref": "#/components/schemas/PartialDate" }, "end": { "oneOf": [{ "$ref": "#/components/schemas/PartialDate" }, { "type": "null" }] }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "SkillRef": { "type": "object", "required": ["slug"], "properties": { "slug": { "type": "string" }, "name": { "type": "string", "readOnly": true }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "Organization": { "type": "object", "required": ["name"], "properties": {
        "slug": { "type": "string", "readOnly": true }, "name": { "type": "string" }, "short_name": { "type": ["string", "null"] }, "url": { "type": ["string", "null"] }, "location": { "type": ["string", "null"] },
        "engagements": { "type": "array", "readOnly": true, "items": { "type": "object", "properties": { "id": { "type": "integer" }, "start": { "$ref": "#/components/schemas/PartialDate" }, "end": { "oneOf": [{ "$ref": "#/components/schemas/PartialDate" }, { "type": "null" }] }, "_links": { "$ref": "#/components/schemas/Links" } } } },
        "_links": { "$ref": "#/components/schemas/Links" } } },
      "Engagement": { "type": "object", "required": ["organization", "start"], "properties": {
        "id": { "type": "integer", "readOnly": true }, "organization": { "$ref": "#/components/schemas/OrgRef", "description": "Only slug is used on write" },
        "start": { "$ref": "#/components/schemas/PartialDate" }, "end": { "oneOf": [{ "$ref": "#/components/schemas/PartialDate" }, { "type": "null" }], "description": "null = present" },
        "location": { "type": ["string", "null"] }, "summary": { "type": ["string", "null"] }, "visible": { "type": "boolean", "default": true },
        "roles": { "type": "array", "readOnly": true, "items": { "$ref": "#/components/schemas/RoleRef" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "Role": { "type": "object", "required": ["title", "engagement_id", "start"], "properties": {
        "slug": { "type": "string", "readOnly": true }, "title": { "type": "string" }, "organization": { "$ref": "#/components/schemas/OrgRef", "readOnly": true },
        "engagement_id": { "type": "integer" }, "start": { "$ref": "#/components/schemas/PartialDate" }, "end": { "oneOf": [{ "$ref": "#/components/schemas/PartialDate" }, { "type": "null" }] },
        "headline": { "type": ["string", "null"] }, "timeline_label": { "type": ["string", "null"] }, "visible": { "type": "boolean", "default": true },
        "print": { "enum": ["full", "brief", "omit"], "default": "full", "description": "In the print/PDF version: everything, title/dates/headline only (brief), or left out." },
        "bullet_groups": { "type": "array", "items": { "type": "object", "properties": { "heading": { "type": ["string", "null"] },
          "bullets": { "type": "array", "items": { "type": "object", "required": ["text"], "properties": { "text": { "$ref": "#/components/schemas/Markdown" }, "visible": { "type": "boolean", "default": true },
            "print": { "enum": ["include", "omit", "only"], "default": "include", "description": "In the print/PDF version: included, left out, or only there (not on the web page)." } } } } } } },
        "skills": { "type": "array", "items": { "$ref": "#/components/schemas/SkillRef" }, "description": "Only slug is used on write; skills must exist" },
        "_links": { "$ref": "#/components/schemas/Links" } } },
      "Skill": { "type": "object", "required": ["name"], "properties": {
        "slug": { "type": "string", "readOnly": true }, "name": { "type": "string" }, "category": { "oneOf": [{ "type": "object", "required": ["slug"], "properties": { "slug": { "type": "string" }, "name": { "type": "string", "readOnly": true }, "_links": { "$ref": "#/components/schemas/Links" } } }, { "type": "null" }], "description": "Category {slug}; only slug is used on write" },
        "featured": { "type": "boolean", "description": "Listed in the Skills section" }, "sort_order": { "type": "integer" },
        "role_count": { "type": "integer", "readOnly": true }, "roles": { "type": "array", "readOnly": true, "items": { "$ref": "#/components/schemas/RoleRef" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "SkillCategory": { "type": "object", "required": ["name"], "properties": {
        "slug": { "type": "string", "readOnly": true }, "name": { "type": "string" }, "sort_order": { "type": "integer" },
        "skills": { "type": "array", "readOnly": true, "items": { "$ref": "#/components/schemas/SkillRef" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "Patent": { "type": "object", "required": ["title", "status"], "properties": {
        "id": { "type": "string", "readOnly": true }, "jurisdiction": { "type": "string", "readOnly": true }, "number": { "type": "string", "readOnly": true },
        "kind_code": { "type": ["string", "null"] }, "title": { "type": "string" },
        "priority_date": { "oneOf": [{ "$ref": "#/components/schemas/PartialDate" }, { "type": "null" }] }, "filed_date": { "oneOf": [{ "$ref": "#/components/schemas/PartialDate" }, { "type": "null" }] }, "granted_date": { "oneOf": [{ "$ref": "#/components/schemas/PartialDate" }, { "type": "null" }] },
        "status": { "enum": ["pending", "granted", "expired", "abandoned"] }, "assignee": { "type": ["string", "null"] },
        "role": { "oneOf": [{ "$ref": "#/components/schemas/RoleRef" }, { "type": "null" }], "description": "Only slug is used on write" },
        "url": { "type": "string", "description": "Defaults to the Google Patents page; set to override" },
        "cited_by": { "oneOf": [{ "type": "object", "properties": { "count": { "type": "integer" }, "as_of": { "$ref": "#/components/schemas/PartialDate" } } }, { "type": "null" }] },
        "visible": { "type": "boolean", "default": true }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "Education": { "type": "object", "required": ["institution"], "properties": {
        "id": { "type": "integer", "readOnly": true }, "institution": { "type": "string" }, "program": { "type": ["string", "null"] }, "credential": { "type": ["string", "null"], "description": "null = coursework without a degree" },
        "start": { "oneOf": [{ "$ref": "#/components/schemas/PartialDate" }, { "type": "null" }] }, "end": { "oneOf": [{ "$ref": "#/components/schemas/PartialDate" }, { "type": "null" }] },
        "notes": { "type": ["string", "null"] }, "sort_order": { "type": "integer" }, "visible": { "type": "boolean", "default": true }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "SectionList": { "type": "object", "properties": { "count": { "type": "integer" }, "sections": { "type": "array", "items": { "$ref": "#/components/schemas/Section" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "OrganizationList": { "type": "object", "properties": { "count": { "type": "integer" }, "organizations": { "type": "array", "items": { "$ref": "#/components/schemas/Organization" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "EngagementList": { "type": "object", "properties": { "count": { "type": "integer" }, "engagements": { "type": "array", "items": { "$ref": "#/components/schemas/Engagement" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "RoleList": { "type": "object", "properties": { "count": { "type": "integer" }, "roles": { "type": "array", "items": { "$ref": "#/components/schemas/Role" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "SkillList": { "type": "object", "properties": { "count": { "type": "integer" }, "skills": { "type": "array", "items": { "$ref": "#/components/schemas/Skill" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "SkillCategoryList": { "type": "object", "properties": { "count": { "type": "integer" }, "skill_categories": { "type": "array", "items": { "$ref": "#/components/schemas/SkillCategory" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "PatentList": { "type": "object", "properties": { "count": { "type": "integer" }, "patents": { "type": "array", "items": { "$ref": "#/components/schemas/Patent" } }, "_links": { "$ref": "#/components/schemas/Links" } } },
      "EducationList": { "type": "object", "properties": { "count": { "type": "integer" }, "education": { "type": "array", "items": { "$ref": "#/components/schemas/Education" } }, "_links": { "$ref": "#/components/schemas/Links" } } }
    }
  }
}
