The document source schema

All documents in a compendium can include an optional source property. This is used to indicate where the content originally comes from. Only the title key is required, but you can optionally provide links and publisher information.

Base Schema

Property
Required
Type
Description

title

true

string

The name of the document source, such as a book, document, or webpage.

link

false

sourceLink

A link to the original content. This could either be a direct source or a sales page.

publisher

false

string

The name of the content's publisher.

Property
Required
Type
Description

url

true

string

A URL for the content source.

affiliate

false

boolean

Indicates whether the link is an affiliate link.

Example Usage

"source": {
    "title": "MoAR: Complete",
    "link": {
        "url": "https://bit.ly/4b7Fsyi",
        "affiliate": true
    },
    "publisher": "Purple Martin Games"
}

Last updated