openapi: 3.1.0
info:
  title: Qur'an API
  version: "1.1.0"
  summary: >-
    The complete Qur'an as static JSON: the Arabic text in the Hafs and Warsh
    riwayat, with French, English, Italian, Spanish and Wolof translations and
    the Arabic in Latin letters.
  description: |
    There is no server. Every path below is a static JSON file generated from
    the reviewed corpus in the repository and published to GitLab Pages, so
    every response is cacheable, CORS-open and free to use without a key.

    `/v1/quran.json` is the whole corpus in one file. The per-chapter and
    per-edition files are generated from the same validated corpus for clients
    that do not want the whole download.

    Every response uses the same envelope, so a client only ever unwraps
    `data`. A missing chapter or edition is a plain HTTP 404 from Pages, not an
    envelope carrying an error code.

    Translations are aligned to the Kufan (Hafs) numbering and are carried
    inline on the `hafs-uthmani` reading. The `warsh-uthmani` reading counts
    its verses differently; each of its verses names the Hafs verses its words
    cover in `hafsVerses`, so a translation is reached through that mapping
    rather than being repeated under a second numbering.

    The transliteration — the Arabic sounded out in Latin letters — is reached
    the same way, but it is **not** a translation and is never inside
    `translations`. It has its own `transliterationEditions` group in the
    catalogue and its own `transliteration` field on a verse, so a client
    cannot serve a romanisation where a reader asked for the meaning.

    ## Audio

    Two independent things can be played for one ayah, in two separate
    fields, so a client can offer two buttons and never has to parse a URL to
    tell them apart:

    * `recitationAudio` — the **Arabic, recited**, keyed by recording
      collection id. One complete ayah per file.
    * `translationAudio` — a **translation, spoken**, keyed by the exact
      translation edition id whose words are read.

    A translation edition's own file carries the same URL as `audioUrl` on the
    matching verse, and every view is derived from one inventory, so the
    corpus, the surah files and the edition files cannot disagree.

    `audioEditions` is the catalogue of everything audible, discriminated by
    `kind`; `recitationEditions` and `narrationEditions` are the same entries
    split, and `narrationEditions` is kept because clients written against
    1.2.0 read it. Three kinds exist and the difference is published, because
    a listener is entitled to know what they are hearing:

    * `recitation` — a person reciting the Arabic Qur'an.
    * `narration` — a person reading a translation aloud. No Arabic is spoken.
    * `synthetic-narration` — a model speaking a translation, from an
      authorized reference recording of a named speaker. Says so in `kind`,
      names the speaker and the authority, and names the model.

    Neither kind of narration is recitation of the Qur'an.

    Translated meanings hang off the reference numbering, so the
    `warsh-uthmani` reading reaches a translation clip through `hafsVerses`
    and never by matching ayah numbers. Recitation does **not** travel that
    way: the only Arabic recording published here is Hafs, and serving it on a
    Warsh ayah would tell a reader they were hearing Warsh.

    Audio bytes are served from Firebase Storage rather than from this site —
    5.07 GB does not fit a 1 GB Pages deployment — so an audio URL points at
    `firebasestorage.googleapis.com` and needs no credentials, no token of
    yours and no database lookup. Fetch a surah once and play straight from
    the URLs in it.
  license:
    name: MIT (tooling and compilation only; see NOTICE.md for the text and the translations)
    url: https://gitlab.com/nexus-programming/nexus-quran-api/-/blob/master/LICENSE
  contact:
    name: Nexus Programming
    url: https://gitlab.com/nexus-programming/nexus-quran-api

servers:
  - url: https://quran.nexusprogramming.dev
    description: Canonical host
  - url: https://nexus-programming.gitlab.io/nexus-quran-api
    description: GitLab Pages namespace URL (redirects to the canonical host)

paths:
  /v1/quran.json:
    get:
      summary: The whole corpus
      description: >-
        Both Arabic editions and all six translations, with the chapter
        catalogue and the edition metadata. This is the single-file download.
      operationId: getQuran
      responses:
        "200":
          description: The complete corpus
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/Envelope"
                  - type: object
                    properties:
                      data: { $ref: "#/components/schemas/Corpus" }

  /v1/manifest.json:
    get:
      summary: What is published, and the checksum of the corpus
      operationId: getManifest
      responses:
        "200":
          description: Schema and content version, editions, coverage, size and SHA-256
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/Envelope"
                  - type: object
                    properties:
                      data: { $ref: "#/components/schemas/Manifest" }

  /v1/meta.json:
    get:
      summary: Counts, coverage and the list of endpoints
      operationId: getMeta
      responses:
        "200":
          description: Dataset metadata
          content:
            application/json:
              schema: { $ref: "#/components/schemas/Envelope" }

  /v1/editions.json:
    get:
      summary: The editions and the numbering schemes
      operationId: getEditions
      responses:
        "200":
          description: The edition catalogue
          content:
            application/json:
              schema: { $ref: "#/components/schemas/Envelope" }

  /v1/surahs.json:
    get:
      summary: All 114 chapters with their metadata, no text
      operationId: getSurahs
      responses:
        "200":
          description: The chapter catalogue
          content:
            application/json:
              schema: { $ref: "#/components/schemas/Envelope" }

  /v1/surah/{number}.json:
    get:
      summary: One chapter, every edition
      operationId: getSurah
      parameters:
        - name: number
          in: path
          required: true
          description: 1 to 114
          schema: { type: integer, minimum: 1, maximum: 114 }
      responses:
        "200":
          description: One chapter
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/Envelope"
                  - type: object
                    properties:
                      data: { $ref: "#/components/schemas/Surah" }
        "404":
          description: No such chapter

  /v1/edition/{edition}.json:
    get:
      summary: The whole corpus in a single edition
      operationId: getEdition
      parameters:
        - name: edition
          in: path
          required: true
          description: An edition id from /v1/editions.json
          schema:
            type: string
            enum:
              - hafs-uthmani
              - warsh-uthmani
              - fr.hamidullah
              - en.sahih
              - fr.maach
              - it.piccardo
              - es.garcia
              - wo.lo-ngaabu
              - transliteration
      responses:
        "200":
          description: >-
            One edition, all 114 chapters.

            Where the edition has published audio, each verse that has a clip
            also carries `audioUrl` — the same URL the corpus publishes for
            that verse, read back out of the corpus rather than rebuilt, so
            the two endpoints cannot disagree. For an Arabic edition that is
            its recitation; for a translation edition it is the spoken
            translation.

            `audioUrl` is a single URL, so when an edition has more than one
            voice it carries the **default**, chosen by a written rule rather
            than by whichever file was found first: the collection whose id is
            the edition id wins, otherwise the lexicographically first
            collection id. The document then also carries `defaultNarration`
            and `narrations` (or `recitations` and `defaultRecitation` for an
            Arabic edition) so every voice stays reachable by name. Adding a
            second voice does not change which one an existing client plays.
          content:
            application/json:
              schema: { $ref: "#/components/schemas/Envelope" }
        "404":
          description: No such edition

components:
  schemas:
    Envelope:
      type: object
      required: [code, status, data]
      properties:
        code: { type: integer, const: 200 }
        status: { type: string, const: OK }
        data: {}

    Corpus:
      type: object
      required:
        [schemaVersion, contentVersion, apiVersion, numberingSchemes,
         arabicEditions, transliterationEditions, translationEditions,
         audioEditions, recitationEditions, narrationEditions,
         counts, coverage, surahs]
      properties:
        schemaVersion:
          type: string
          description: Version of this JSON contract. A breaking change bumps the major.
        contentVersion:
          type: string
          description: >-
            Version of the corpus and its corrections. Changes when the text
            changes; edition ids stay stable across content versions.
        apiVersion: { type: string, const: v1 }
        numberingSchemes:
          type: array
          items: { $ref: "#/components/schemas/NumberingScheme" }
        arabicEditions:
          type: array
          items: { $ref: "#/components/schemas/ArabicEdition" }
        transliterationEditions:
          type: array
          maxItems: 1
          items: { $ref: "#/components/schemas/TransliterationEdition" }
        translationEditions:
          type: array
          items: { $ref: "#/components/schemas/TranslationEdition" }
        audioEditions:
          type: array
          description: >-
            Everything audible, one entry per published collection,
            discriminated by `kind`. Read this rather than the two split
            views below unless you already depend on them.
          items: { $ref: "#/components/schemas/AudioEdition" }
        recitationEditions:
          type: array
          description: >-
            The subset of `audioEditions` whose `kind` is `recitation`: the
            Arabic, recited. Empty when none is published.
          items: { $ref: "#/components/schemas/AudioEdition" }
        narrationEditions:
          type: array
          description: >-
            The subset of `audioEditions` whose `kind` is `narration` or
            `synthetic-narration`: a translation, spoken. Shipped in 1.2.0 and
            kept unchanged for clients that read it; it never contains a
            recitation. Empty when none is published.
          items: { $ref: "#/components/schemas/AudioEdition" }
        counts: { type: object }
        coverage:
          type: object
          description: Per-translation verse coverage, keyed by edition id.
          additionalProperties:
            type: object
            properties:
              language: { type: string }
              expected: { type: integer }
              present: { type: integer }
              corrections: { type: integer }
        surahs:
          type: array
          minItems: 114
          maxItems: 114
          items: { $ref: "#/components/schemas/Surah" }

    AudioEdition:
      type: object
      description: >-
        One published audio collection: what it is, what it is a reading of,
        how much of it exists, and who is credited. Shared by
        `audioEditions`, `recitationEditions` and `narrationEditions`; which
        fields are present depends on `kind`.
      required: [id, of, language, numbering, kind, verses, expected, mediaType, about]
      properties:
        id:
          type: string
          description: >-
            The collection's own stable id. This is the key used in
            `recitationAudio` and `translationAudio` on a verse. Two
            collections may share a reciter and differ only in reading —
            `ar.abdulbasit-murattal` is Hafs and
            `ar.abdulbasit-warsh-murattal` is Warsh — so the id, not the
            reciter, is what identifies a recording.
          enum:
            - ar.abdulbasit-murattal
            - ar.abdulbasit-warsh-murattal
            - en.sahih
            - fr.maach
            - wo.lo-ngaabu
          example: ar.abdulbasit-murattal
        of:
          type: string
          description: >-
            What this is a reading OF. An Arabic edition id for a recitation,
            a translation edition id for a narration. A narration's `of` is
            the edition whose exact wording is spoken — a recording of one
            translator's words is never offered against another's text.
          example: hafs-uthmani
        kind:
          type: string
          enum: [recitation, narration, synthetic-narration]
          description: >-
            `recitation`: a person reciting the Arabic Qur'an.
            `narration`: a person reading a translation aloud; no Arabic is
            spoken. `synthetic-narration`: a model speaking a translation
            from an authorized reference recording. A listener must never
            have to guess which of the three they are hearing.
        language:
          type: string
          description: The language actually spoken. `ar` only for a recitation.
          example: ar
        numbering: { type: string, const: hafs }
        verses:
          type: integer
          description: >-
            Clips actually published — uploaded and verified, or reviewed and
            approved. Not merely downloaded or generated. May be fewer than
            `expected`: `ar.abdulbasit-warsh-murattal` publishes 6,095 of
            6,214 because 119 Warsh ayahs have no boundary that can be
            established from its source. Those verses omit the field rather
            than carrying a URL that would play the wrong words.
          example: 6236
        expected:
          type: integer
          description: Verses in a complete collection, so partial coverage is visible.
          example: 6236
        mediaType: { type: string, const: audio/mpeg }
        about: { type: string }
        audio:
          type: object
          description: >-
            What the bytes are, as the provider encoded them. Present for a
            mirrored collection; nothing is re-encoded on the way through.
          properties:
            codec: { type: string, const: mp3 }
            bitrateKbps: { type: integer, example: 192 }
            channels: { type: integer, example: 2 }
            sampleRateHz: { type: integer, example: 44100 }
        credits:
          type: object
          description: >-
            Who is heard, who served the files, and on what terms. Present for
            a mirrored collection, once per collection rather than per clip.
          required: [reciter, provider, licence, attribution]
          properties:
            reciter:
              type: string
              description: The reciter for a recitation, the narrator for a read translation.
              example: Abdul Basit Abdul Samad
            riwayah:
              type: [string, "null"]
              description: >-
                The reading, for a recitation. Null for a spoken translation,
                which has no riwaya of its own.
              example: Hafs 'an 'Asim
            style:
              type: [string, "null"]
              example: Murattal
            provider: { type: string, example: everyayah.com }
            providerUrl: { type: string }
            collection: { type: string }
            licence:
              type: string
              description: >-
                The terms this is republished under, in plain words. Where a
                provider states none, this says so rather than being empty.
            attribution:
              type: string
              description: The credit this is published under.
            note: { type: string }
        storage:
          type: object
          description: >-
            Where the objects live. Absent for a collection served from this
            site under `/v1/audio/`.
          properties:
            layoutVersion:
              type: string
              const: v1
              description: >-
                The version of the object folder layout — not the API version
                and not the content version.
            prefix:
              type: string
              example: quran/audio/v1/recitations/hafs/abdul-basit-abdul-samad/murattal
        voice:
          type: object
          description: >-
            Whose voice a synthetic narration clones, and on what authority.
            Present only when `kind` is `synthetic-narration`, and no clip is
            published unless all three are filled in.
          required: [speaker, authorization, credit]
          properties:
            speaker: { type: string, example: Imam Assane Sarr }
            authorization:
              type: string
              description: The permission under which the voice is used.
            credit:
              type: string
              description: The public credit agreed with the speaker.
        synthesis:
          type: object
          description: >-
            What produced a synthetic narration. Present only when `kind` is
            `synthetic-narration`.
          required: [model, modelRevision]
          properties:
            model: { type: string, example: soynade-research/Oolel-Voices }
            modelRevision: { type: string }
            modelLicence: { type: string, example: AGPL-3.0 }
            settings: { type: object }
            encoder: { type: object }
        translation:
          type: object
          description: >-
            The translation's own credits. A narration is a reading of someone
            else's work and does not supersede their attribution.

    NarrationEdition:
      description: >-
        Deprecated alias of AudioEdition, kept so a client written against
        1.2.0 still resolves. Use AudioEdition.
      allOf:
        - $ref: "#/components/schemas/AudioEdition"

    TransliterationEdition:
      type: object
      description: >-
        The Arabic in Latin letters, for a reader who can say the words but
        cannot yet read the script. It carries none of the meaning, which is
        why it is not a TranslationEdition: `language` is still `ar` and only
        `script` differs. Built from the provider's word-level romanisation of
        the same words the Arabic edition is built from, checked position for
        position against them; the published strings are the words of an ayah
        joined with single spaces and cannot be split back into them.
      required:
        [id, language, name, type, direction, script, of, numbering,
         verseCount, notATranslation, scheme, attribution]
      properties:
        id: { type: string, const: transliteration }
        language: { type: string, const: ar }
        languageName: { type: string, example: Arabic in Latin letters }
        name: { type: string }
        englishName: { type: string }
        type: { type: string, const: transliteration }
        direction: { type: string, const: ltr }
        script: { type: string, const: Latn }
        of:
          type: string
          description: The Arabic edition whose words this romanises.
          example: hafs-uthmani
        numbering: { type: string, const: hafs }
        verseCount: { type: integer, const: 6236 }
        notATranslation: { type: string }
        scheme:
          type: string
          description: >-
            The romanisation scheme, in words. Lower case throughout, long
            vowels as a-macron, emphatics with a dot below, a modifier left
            half ring for 'ayn and a plain apostrophe for the glottal stop.
        sourceRevision: { type: string }
        wordAlignment: { type: string }
        attribution: { type: string }
        notUsed: { type: string }

    NumberingScheme:
      type: object
      required: [id, name, description, verseCount]
      properties:
        id: { type: string, enum: [hafs, warsh] }
        name: { type: string }
        description: { type: string }
        verseCount: { type: integer }

    ArabicEdition:
      type: object
      required: [id, language, riwayah, script, numbering, verseCount, attribution]
      properties:
        id: { type: string, example: hafs-uthmani }
        language: { type: string, const: ar }
        name: { type: string }
        englishName: { type: string }
        riwayah: { type: string, example: Hafs 'an 'Asim }
        script: { type: string, example: Uthmani }
        numbering: { type: string, enum: [hafs, warsh] }
        direction: { type: string, const: rtl }
        verseCount: { type: integer }
        attribution: { type: string }
        translationsAligned:
          type: boolean
          description: >-
            True when translations are inline on this edition's verses; false
            when they are reached through each verse's hafsVerses.

    TranslationEdition:
      type: object
      required: [id, language, translator, numbering, sourceRevision, attribution]
      properties:
        id:
          type: string
          description: Stable edition id, never reused for a different edition.
          example: wo.lo-ngaabu
        language: { type: string, example: wo }
        languageName: { type: string }
        name: { type: string }
        translator: { type: string }
        direction: { type: string, enum: [ltr, rtl] }
        numbering: { type: string, const: hafs }
        sourceRevision: { type: string }
        attribution: { type: string }
        custodian:
          type: object
          description: >-
            Who to ask about this edition's rights, when that is someone other
            than the provider it is served by.
          properties:
            name: { type: string }
            where: { type: string }
            url: { type: string }
            contact: { type: string }
        rights: { type: string }
        apparatus:
          type: object
          description: >-
            Present only when the provider serves this edition with printing
            inside its verse fields. it.piccardo arrives with whole sections of
            the printed footnote apparatus, es.garcia with verses that run on
            into the next. Each is cut at a boundary proven against the
            provider's own data and recorded in the edition's ledger; no word of
            a translation is rewritten. Verses whose boundary cannot be shown are
            served as they arrive and named under `unresolved`.
          required: [note, ledger, corrections, unresolved, residue, diagnostics]
          properties:
            note: { type: string }
            ledger:
              type: string
              description: Path to the ledger, one entry per corrected verse.
              example: data/corrections/it-piccardo.json
            corrections: { type: integer }
            charactersRemoved: { type: integer }
            unresolved:
              type: object
              description: Verses served exactly as they arrive, and why.
              required: [verses, note]
              properties:
                verses:
                  type: array
                  items: { type: string }
                  example: ["21:68"]
                note: { type: string }
                readElsewhere: { type: string }
            residue:
              type: object
              description: >-
                What is left over, by two measures — against the Arabic, and
                against the median of the other translations of the same verse.
                Pinned, so the build fails if either count changes. Neither
                measure ever decides what to cut.
              properties:
                overTheArabic: { type: integer }
                overTheOtherEditions: { type: integer }
                note: { type: string }
            diagnostics: { type: string }

    Surah:
      type: object
      required: [number, name, arabicName, revelationPlace, verseCounts, readings]
      properties:
        number: { type: integer, minimum: 1, maximum: 114 }
        name: { type: string, example: Al-Fatihah }
        transliteratedName: { type: string }
        englishName: { type: string }
        arabicName:
          type: object
          description: The Arabic name as each edition's mushaf prints it, keyed by edition id.
          additionalProperties: { type: string }
        revelationPlace: { type: string, enum: [makkah, madinah] }
        revelationOrder: { type: integer }
        verseCounts:
          type: object
          additionalProperties: { type: integer }
        readings:
          type: object
          description: One entry per Arabic edition, keyed by edition id.
          additionalProperties: { $ref: "#/components/schemas/Reading" }

    Reading:
      type: object
      required: [numbering, verseCount, basmala, verses]
      properties:
        numbering: { type: string, enum: [hafs, warsh] }
        verseCount: { type: integer }
        firstPage: { type: integer }
        lastPage: { type: integer }
        basmala: { $ref: "#/components/schemas/Basmala" }
        translations:
          type: string
          enum: [inline, via hafsVerses]
        verses:
          type: array
          items: { $ref: "#/components/schemas/Verse" }

    Basmala:
      type: object
      description: >-
        How this chapter opens in this edition. Printed and numbered means the
        basmala is an ayah of the chapter, which is true only of Al-Fatihah in
        Hafs. Printed and not numbered means it is set above the first ayah.
        At-Tawbah is neither.
      required: [printed, numbered]
      properties:
        printed: { type: boolean }
        numbered: { type: boolean }
        verseKey:
          type: string
          description: Present only when the basmala is itself a numbered ayah.
        text:
          type:  [string, "null"]
        textNote: { type: string }

    Verse:
      type: object
      required: [ayah, key, juz, page, line, text]
      properties:
        ayah: { type: integer, minimum: 1 }
        key:
          type: string
          description: surah:ayah within this edition's numbering.
          example: "2:282"
        juz: { type: integer, minimum: 1, maximum: 30 }
        page: { type: integer, minimum: 1, maximum: 604 }
        line: { type: integer }
        text:
          type: string
          description: The ayah in Unicode, as the edition's publisher writes it.
        transliteration:
          type: string
          description: >-
            The ayah in Latin letters. Present on an edition whose numbering
            the transliteration is aligned to — the same condition as
            `translations`, and reached through `hafsVerses` on the other
            reading. Never a translation: it is this verse's own words,
            romanised.
          example: "al-\u1e25amdu lillahi rabbi l-\u02bf\u0101lam\u012bna"
        recitationAudio:
          type: object
          description: >-
            A playable MP3 of **this verse recited in Arabic**, keyed by
            recording collection id. One complete ayah per file. Its own
            field, separate from `translationAudio`, so a client can offer an
            Arabic button and a translation button and play either without the
            other.

            **Per reading.** Each Arabic edition carries its own recitation,
            keyed by its own ayah numbers, and a recitation is never carried
            across riwayat: `warsh-uthmani` 1:1 and `hafs-uthmani` 1:1 are
            not the same verse, and offering a Hafs recording on a Warsh ayah
            would tell a reader they were hearing Warsh. So selecting Warsh
            resolves straight to Warsh audio with no `hafsVerses` lookup, and
            a Warsh verse that has no Warsh recording simply omits this field.
            Translated *meanings* do still travel through `hafsVerses` — a
            meaning is the same meaning in either riwaya — but a reading of
            the Arabic does not.

            A URL appears only after its object was uploaded and fetched back
            successfully, so a URL here plays.
          additionalProperties:
            type: string
            format: uri
          example:
            ar.abdulbasit-murattal: "https://firebasestorage.googleapis.com/v0/b/nexus-quran-api.firebasestorage.app/o/quran%2Faudio%2Fv1%2Frecitations%2Fhafs%2Fabdul-basit-abdul-samad%2Fmurattal%2F002%2F255.a03e480d79a5.mp3?alt=media&token=a9c2e0f4-5b31-4d8e-9f17-2c6b8a0d3e55"
        translationAudio:
          type: object
          description: >-
            A playable MP3 of **a translation of this verse, spoken**, keyed by
            the same edition id as `translations` — so the voice reads the
            wording shown on screen and never another translator's. Beside the
            translations, never inside them: the value is a URL, not a reading,
            and a client that found it among the texts could render a link
            where a verse belongs.

            Present only where a clip has cleared its gate: uploaded and
            verified for a mirrored recording, or reviewed and approved by a
            named person for a synthetic one. A generated but unreviewed clip
            has no URL at all. Same condition and same mapping as
            `translations`, so the `warsh-uthmani` reading reaches it through
            `hafsVerses`.
          additionalProperties:
            type: string
            format: uri
          example:
            en.sahih: "https://firebasestorage.googleapis.com/v0/b/nexus-quran-api.firebasestorage.app/o/quran%2Faudio%2Fv1%2Ftranslations%2Fen%2Fen.sahih%2Fibrahim-walk%2F002%2F255.2bb0afd6d02d.mp3?alt=media&token=3f0b5c81-7a42-4e19-8d63-15ab94c7e20d"
        translations:
          type: object
          description: >-
            Present on an edition whose numbering translations are aligned to.
            Keyed by translation edition id.
          additionalProperties: { type: string }
        footnotes:
          type: object
          description: >-
            The provider's footnote ids for this verse, keyed by translation
            edition id. The markers are removed from the text; the notes
            themselves are not republished.
          additionalProperties:
            type: array
            items: { type: integer }
        hafsVerses:
          type: array
          description: >-
            On an edition with its own numbering: the keys, in the Kufan
            numbering, of the verses this one's words cover.
          items: { type: string }
        coverage:
          type: string
          enum: [exact, joins, partial]
          description: >-
            How this verse relates to the Kufan numbering. exact: one Kufan
            verse. joins: several complete Kufan verses. partial: it shares a
            Kufan verse with a neighbouring verse, so the translation reached
            through hafsVerses belongs to both and is not this verse's alone.
        sharedWith:
          type: array
          description: On a partial verse, the neighbouring verses it shares a Kufan verse with.
          items: { type: string }

    Manifest:
      type: object
      required: [schemaVersion, contentVersion, corpus, editions, coverage]
      properties:
        schemaVersion: { type: string }
        contentVersion: { type: string }
        apiVersion: { type: string }
        contentChecksum:
          type: string
          description: SHA-256 of the corpus itself, independent of how the file is laid out.
        corpus:
          type: object
          required: [path, bytes, sha256]
          properties:
            path: { type: string, const: /v1/quran.json }
            bytes: { type: integer }
            sha256: { type: string }
            encoding: { type: string, const: UTF-8 }
            mediaType: { type: string, const: application/json }
        editions: { type: object }
        coverage: { type: object }
        corrections: { type: object }
