aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/converter/grandparent.sd
blob: 603553f739dc7b9062a4b4b62c96d49687265956 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search grandparent {

  struct item {
    field f1i type int {}
  }

  struct gps {
    field reftoa type annotationreference<gpa> {}
    field someitems type array<item> {}
  }

  document grandparent {

    field c type map<string, gps> {
       indexing: index
    }

    #field inrgp type redef {
    #}
  }

  annotation gpa {
    field city type string {}
    field zip type int {}
  }

  #struct redef {
  #  field y type int {}
  #  field z type string {}
  #}
}