go: cuelang.org/go/internal/core/validate Index | Files

package validate

import "cuelang.org/go/internal/core/validate"

Package validate collects errors from an evaluated Vertex.


Package Files


func Validate Uses

func Validate(ctx *adt.OpContext, v *adt.Vertex, cfg *Config) *adt.Bottom

Validate checks that a value has certain properties. The value must have been evaluated.

type Config Uses

type Config struct {
    // Concrete, if true, requires that all values be concrete.
    Concrete bool

    // DisallowCycles indicates that there may not be cycles.
    DisallowCycles bool

    // AllErrors continues descending into a Vertex, even if errors are found.
    AllErrors bool

Package validate imports 1 packages (graph) and is imported by 4 packages. Updated 2021-01-26. Refresh now. Tools for package owners.