-
Notifications
You must be signed in to change notification settings - Fork 188
/
base-example.axiom
53 lines (44 loc) · 1.15 KB
/
base-example.axiom
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
47
48
49
50
51
52
53
model model-header {
documentation """
This is showcase of baseline Axiom model header.
Standard model header should contain:
- description (optional)
- namespace (required)
- version (required)
- prefix (optional
""";
namespace "https://ns.evolveum.com/example/axiom/model-header";
version "0.0.1";
type string;
type Address;
type Link;
type PolyString;
type Example {
documentation """
Example complex type. This type does not have supertype.
Type may contain items.
""";
item name {
type string;
}
}
object User {
itemName user;
item address { // shorthand syntax 'container address type Address';
type Address;
identifier type; // All values should have unique value.
maxOccurs unbounded;
}
item name {
type PolyString;
}
item link {
type Link;
maxOccurs unbounded;
}
}
object {
name User2;
itemName user;
}
}