TOC Toolkit API - v0.1.0
    Preparing search index...

    Function draftKey

    • The canonical text of a draft, which is JSON with sorted keys and no whitespace. The text holds the whole draft, including its kind, so it is the identity of the draft and the fingerprint under which a cache keeps the model that the draft checks to. Two drafts that are deeply equal give the same text, and two drafts that differ in a field, in the order of an array or in the text of a source give different texts. A field whose value is undefined counts as absent. The function reads the draft only, charges no budget and does not check the draft.

      Parameters

      Returns string