aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/examples/struct.sd
blob: 586c1fba9fa69ec179a5bba5fd6f9fe2cac0c9a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search music {
  document music {
    struct foo {
      field bar type string { id: 1}
      field fubar type int {}
    }

    struct bar {
      field humbe type foo {}
    }

    field mystruct type foo {}
    field arraystruct type array<foo> {}
    field advanced type bar {}
  }
}