• Validates the given file property.

    Parameters

    • key: string

      The key of the property.

    • property: unknown

      The actual value.

    • metadata: PropertyMetadata

      The metadata of the property.

    • parentKey: undefined | string

      The key of the parent, if it exists.

    • entity: unknown

      The entity that the file belongs to.

    Returns ValidationProblem[]

    All validation problems found.

    When the property is not a file property.