/
Resource.schema.json
90 lines (90 loc) · 2.85 KB
/
Resource.schema.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "Resource.schema.json",
"title": "Resource",
"definitions": {
"Resource": {
"$id": "#Resource",
"description": "Resource is an abstract entity that describes the common set of attributes shared by all concrete resources (e.g. TPE, EQUIPMENT) in the inventory.",
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "Category of the concrete resource. e.g Gold, Silver for MSISDN concrete resource"
},
"description": {
"type": "string",
"description": "free-text description of the resource"
},
"endDate": {
"type": "string",
"format": "date-time",
"description": "A date time( DateTime). The date till the resource is effective"
},
"href": {
"type": "string",
"description": "The URI for the object itself."
},
"id": {
"type": "string",
"description": "Identifier of an instance of the resource. Required to be unique within the resource type. Used in URIs as the identifier for specific instances of a type."
},
"lifecycleState": {
"type": "string",
"description": "The life cycle state of the resource."
},
"name": {
"type": "string",
"description": "A string used to give a name to the resource"
},
"startDate": {
"type": "string",
"format": "date-time",
"description": "A date time( DateTime). The date from which the resource is effective"
},
"version": {
"type": "string",
"description": "A field that identifies the specific version of an instance of a resource."
},
"resourceRelationship": {
"type": "array",
"items": {
"$ref": "../Resource/ResourceRelationship.schema.json#ResourceRelationship"
}
},
"characteristic": {
"type": "array",
"items": {
"$ref": "../Resource/ResourceCharacteristic.schema.json#ResourceCharacteristic"
}
},
"place": {
"$ref": "../Common/Place.schema.json#Place"
},
"partyRole": {
"type": "array",
"items": {
"$ref": "../EngagedParty/PartyRoleRef.schema.json#PartyRoleRef"
}
},
"relatedParty": {
"type": "array",
"items": {
"$ref": "../EngagedParty/RelatedParty.schema.json#RelatedParty"
}
},
"note": {
"type": "array",
"items": {
"$ref": "../Common/Note.schema.json#Note"
}
}
},
"allOf": [
{
"$ref": "../Common/Entity.schema.json#Entity"
}
]
}
}
}