github.com/hashicorp/hcl/v2@v2.20.0/cmd/hcldec/examples/sh-config-file/spec.hcldec (about)

     1  object {
     2    attr "name" {
     3      type     = string
     4      required = true
     5    }
     6    default "greeting" {
     7      attr {
     8        name = "greeting"
     9        type = string
    10      }
    11      literal {
    12        value = "Hello"
    13      }
    14    }
    15    block_list "friends" {
    16      block_type = "friend"
    17      attr {
    18        name     = "name"
    19        type     = string
    20        required = true
    21      }
    22    }
    23  }