(n string, req bool)
| 635 | } |
| 636 | |
| 637 | func newObj(n string, req bool) *expr.AttributeExpr { |
| 638 | attr := &expr.AttributeExpr{ |
| 639 | Type: &expr.Object{{Name: n, Attribute: &expr.AttributeExpr{Type: expr.String}}}, |
| 640 | Validation: &expr.ValidationExpr{}, |
| 641 | } |
| 642 | if req { |
| 643 | attr.Validation.Required = []string{n} |
| 644 | } |
| 645 | return attr |
| 646 | } |
| 647 | |
| 648 | func newObj2Meta(n, o string, t, u expr.DataType, l, m expr.MetaExpr, reqs ...string) *expr.AttributeExpr { |
| 649 | attr := &expr.AttributeExpr{ |
no outgoing calls
no test coverage detected