ardielle / ardielle-tools

Apache License 2.0
18 stars 19 forks source link

unable to alias bytes #81

Closed gotwarlost closed 7 years ago

gotwarlost commented 7 years ago
$ cat x.rdl
type Content Bytes;

type Foo Struct {
    Content Bar;
}

resource Foo GET "/" {
}
$ rdl -ps generate go-model x.rdl
$ go build
./x_schema.go:16: undefined: rdl.NewBytesTypeBuilder
gotwarlost commented 7 years ago

what I really want to do with the alias is to enforce a maxsize on it.

boynton commented 7 years ago

Fixed in ardielle-go, change 7222aadb86c55395a52e006c27705ad09d734f0d