sharpliner / sharpliner

Use C# instead of YAML to define your Azure DevOps pipelines
https://www.nuget.org/packages/Sharpliner/
MIT License
283 stars 21 forks source link

Allow overriding PipelineBase.Validation in subclasses outside of the Sharpliner project #294

Closed aditnryn closed 1 month ago

aditnryn commented 1 month ago

Issue

Libraries that depend on Sharpliner and subclass from PipelineBase cannot override Validations as it is marked internal.

    /// <summary>
    /// Returns the list of validations that should be run on the definition (e.g. wrong dependsOn, artifact name typos..).
    /// </summary>
    internal abstract IReadOnlyCollection<IDefinitionValidation> Validations { get; }

Goal

Make it public.

premun commented 1 month ago

This will be in 1.5.11