aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/inheritstruct/child.sd
blob: 00cc09e9d2f2aeca1009fdafa25ca1493b6f36e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema child {
    document child inherits parent {
      struct other_struct inherits my_struct {
        field my_int type int {}
      }
      struct wrapper {
        field wrapped type my_struct {}
      }

      field child_struct_field type my_struct {
        indexing: summary | index
        match: prefix
      }
      field other_field type other_struct {
        indexing: summary
      }
      field wrapped_field type wrapper {
        indexing: summary
      }
    }
}