Function verifyObjectAgainstSchema

  • Verifies data against CType schema or CType schema against meta-schema.

    Parameters

    • object: Record<string, any>

      Data to be verified against schema.

    • schema: Schema

      Schema to verify against.

    • Optional messages: string[]

      Optional empty array. If passed, this receives all verification errors.

    • Optional referencedSchemas: Schema[]

      If schema contains references ($ref) to other schemas, their definitions must be added here in form of an array.

    Returns void