github.com/solo-io/cue@v0.4.7/doc/tutorial/basics/0_intro/80_boilerplate.txt (about)

     1  
     2  -- frontmatter.toml --
     3  title = "Boilerplate"
     4  description = ""
     5  draft = true
     6  
     7  -- text.md --
     8  Constraints specify what values are allowed.
     9  To CUE they are just values like anything else,
    10  but conceptually they can be explained as something in between types and
    11  concrete values.
    12  
    13  Constraints can be used to validate values of concrete instances.
    14  They can be applied to CUE data, or directly to YAML or JSON.
    15  
    16  But constraints can also reduce boilerplate.
    17  If a constraints defines a concrete value, there is no need
    18  to specify it in values to which this constraint applies.