Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "lib/utils/checkModelsSchema"

Index

Functions

Functions

checkModelsSchema

  • checkModelsSchema(structureModel: string, configModel: string): { configModelObject: ConfigModel; structureModelObject: StructureModel }
  • Parses the structure.model.json and config.model.json given their paths. Checks them against their json-schema and throws an error if they does not match.

    Parameters

    • structureModel: string

      The path of the json structure model.

    • configModel: string

      The path of the json config model.

    Returns { configModelObject: ConfigModel; structureModelObject: StructureModel }

    An object containing the structure and config models.

Generated using TypeDoc