GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Validates the legend block of a style.

      Only two things are enforced: the value is an object, and order — when present — is an integer. Everything else is left open, legend entries being extended by capabilities. Accumulator contract — see validateStyleRules.

      Parameters

      • legend: unknown

        The candidate legend value, of unverified shape.

      • errors: ValidationErrorItem[]

        Accumulator for blocking failures. Mutated in place.

      • _warnings: ValidationWarningItem[]

        Accepted for signature symmetry with the other validators; unused.

      • context: Record<string, unknown>

        Diagnostic data merged into every finding.

      Returns void