Class KosmosSchemaValidator

Hierarchy

  • KosmosSchemaValidator

Constructors

Properties

dataSourceWrapper: DataSourceWrapper
jsonContentSchemaManager: JsonContentSchemaManager
schemaManager: SchemaManager
state: ValidatorState = ...
validator: Validator

Methods

  • Parameters

    • localInstance: any
    • schema: ExtendedSchema

    Returns undefined | "\"entityType\" expects a string"

  • Validates the format of a color code.

    Returns

    Returns true if the value matches the color code format, otherwise false.

    Parameters

    • value: unknown

      The value to be validated.

    Returns boolean

  • Validates the format of a date-time string.

    Returns

    Returns true if the value matches the date-time format, otherwise false.

    Parameters

    • value: unknown

      The value to be validated.

    Returns boolean

  • Validates the HTML content length

    Returns

    Returns true if the value matches html length, otherwise false.

    Parameters

    • localInstance: any

      The value to be validated.

    • schema: ExtendedSchema

      Schema for this value.

    Returns undefined | string

  • Validates the format of a KOSMOS ID.

    Returns

    Returns true if the value matches the KOSMOS ID format, otherwise false.

    Parameters

    • value: unknown

      The value to be validated.

    Returns boolean

  • Validates the format of a machine name string.

    Returns

    Returns true if the value matches the machine name format, otherwise false.

    Parameters

    • value: unknown

      The value to be validated.

    Returns boolean

  • Validates the format of a version string.

    Returns

    Returns true if the value matches the version format, otherwise false.

    Parameters

    • value: unknown

      The value to be validated.

    Returns boolean

  • Validates the format of a version range string.

    Returns

    Returns true if the value matches the version range format, otherwise false.

    Parameters

    • value: unknown

      The value to be validated.

    Returns boolean

Generated using TypeDoc