forked from xeipuuv/gojsonschema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exports.go
46 lines (35 loc) · 849 Bytes
/
exports.go
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package gojsonschema
type SubSchema subSchema
func (d *Schema) RootSchema() *SubSchema {
ss := SubSchema(*d.rootSchema)
return &ss
}
func (s *subSchema) Exported() *SubSchema {
ss := SubSchema(*s)
return &ss
}
func (s *subSchema) Property() string {
return s.property
}
func (s *SubSchema) unexported() *subSchema {
ss := subSchema(*s)
return &ss
}
func (s *SubSchema) AllOf() []*subSchema {
return s.unexported().allOf
}
func (s *SubSchema) OneOf() []*subSchema {
return s.unexported().oneOf
}
func (s *SubSchema) ItemsChildren() []*subSchema {
return s.unexported().itemsChildren
}
func (s *SubSchema) PropertiesChildren() []*subSchema {
return s.unexported().propertiesChildren
}
func (s *SubSchema) Format() string {
return s.unexported().format
}
func (s *SubSchema) Property() string {
return s.unexported().property
}