ContentValidationFunction | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias ContentValidationFunction<YamlType>

    ContentValidationFunction: (
        resourceName: string,
        content: YamlType,
        context: ValidationState,
    ) => Promise<void>

    Custom content validator function

    Type Parameters

    • YamlType

    Type declaration

      • (
            resourceName: string,
            content: YamlType,
            context: ValidationState,
        ): Promise<void>
      • Parameters

        • resourceName: string

          Resource name being validated

        • content: YamlType

          Content to validate, already parsed

        • context: ValidationState

          Validation context to add messages to

        Returns Promise<void>