hcl/zcl/schema.go

16 lines
373 B
Go
Raw Normal View History

2017-05-14 00:44:11 +00:00
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
}