{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://iinventedlight.com/library/artifacts/javascript-async-await.schema.json",
  "title": "javascript-async-await (summary schema)",
  "description": "Coverage draft, 23 November 2026, America/Los_Angeles. Not published. Draft note; iil_id is null until live.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "slug": {
      "const": "javascript-async-await"
    },
    "iil_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "note_url": {
      "type": "string",
      "format": "uri",
      "description": "https://iinventedlight.com/library/notes/javascript-async-await/"
    },
    "claim": {
      "type": "string",
      "description": "Async functions let you write promise-based code as if it were synchronous."
    },
    "license": {
      "type": "string"
    },
    "source_license": {
      "type": "string"
    },
    "as_of": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "claim": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "claim"
        ]
      }
    },
    "related_slugs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "related_artifacts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "slug",
    "iil_id",
    "claim",
    "license",
    "as_of"
  ],
  "examples": [
    {
      "slug": "javascript-async-await",
      "iil_id": null,
      "note_url": "https://iinventedlight.com/library/notes/javascript-async-await/",
      "claim": "Async functions let you write promise-based code as if it were synchronous.",
      "claims": [
        {
          "id": "C1",
          "claim": "Async functions let you write promise-based code as if it were synchronous.",
          "source_id": "S1"
        },
        {
          "id": "C2",
          "claim": "await pauses the function until the promise settles, without blocking.",
          "source_id": "S1"
        },
        {
          "id": "C3",
          "claim": "An async function always returns a promise.",
          "source_id": "S1"
        },
        {
          "id": "C4",
          "claim": "HTML tracks unhandled promise rejections on the global object.",
          "source_id": "S2"
        }
      ],
      "license": "CC-BY-4.0",
      "source_license": "CC-BY-4.0 (web.dev); CC-BY-4.0 (WHATWG); prose restates cited source lines in own words",
      "as_of": "2026-11-23",
      "status": "draft-20261123-cov-02",
      "related_slugs": [
        "javascript-promises"
      ]
    }
  ]
}
