• Parse and interpret the YAML file's raw content. This is, essentially, a translation of the YAML file structure into its internal equivalent representation with only a very few changes. See the interface definition of RawVocabEntry for the details.

    The result is ephemeral, in the sense that it is then immediately transformed into a proper internal representation of the vocabulary using the Vocab interface. This is done in a separate function for a better readability of the code.

    Parameters

    • vocab_source: string

      YAML file content (reading in the file must be done beforehand)

    Returns Vocab

    Error in the schema validation or when parsing the YAML content