summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/examples/struct.sd
blob: a9939aa25b2a2f2a185a449ce8f4ce7dda4a8fac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright 2017 Yahoo Holdings. 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 {}
  }
}