hcl/zcl/schema.go
2017-05-13 17:44:11 -07:00

16 lines
373 B
Go

package zcl
// ElementHeaderSchema represents the shape of an element header, and is
// used for matching elements within bodies.
type ElementHeaderSchema struct {
Name string
LabelNames []string
Single bool
}
// BodySchema represents the desired shallow structure of a body.
type BodySchema struct {
Attributes []string
Elements []ElementHeaderSchema
}