Skip to content

Commit 7face6b

Browse files
outdooracornjakobw
authored andcommitted
CRUD: Remove "allOf" from 'global/schemas.js'
Change-Id: I5f39fea827ac080a124d4c3bf6b2cceee7450562
1 parent 5f49573 commit 7face6b

File tree

2 files changed

+3644
-4180
lines changed

2 files changed

+3644
-4180
lines changed

repo/domains/crud/specs/global/schemas.js

Lines changed: 30 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -93,54 +93,43 @@ module.exports = {
9393
"required": [ "title" ]
9494
},
9595
"Statement": {
96-
"allOf": [
97-
{
98-
"type": "object",
99-
"properties": {
100-
"id": {
101-
"description": "The globally unique identifier for this Statement",
102-
"type": "string",
103-
"readOnly": true
104-
},
105-
"rank": {
106-
"description": "The rank of the Statement",
107-
"type": "string",
108-
"enum": [ "deprecated", "normal", "preferred" ],
109-
"default": "normal"
110-
}
111-
}
112-
},
113-
schemaParts.PropertyValuePair,
114-
{
115-
"type": "object",
116-
"properties": {
117-
"qualifiers": {
118-
"type": "array",
119-
"items": { "$ref": "#/components/schemas/Qualifier" },
120-
"default": []
121-
},
122-
"references": {
123-
"type": "array",
124-
"items": { "$ref": "#/components/schemas/Reference" },
125-
"default": []
126-
}
127-
}
128-
}
129-
]
130-
},
131-
"Qualifier": schemaParts.PropertyValuePair,
132-
"Reference": {
13396
"type": "object",
13497
"properties": {
135-
"hash": {
136-
"description": "Hash of the Reference",
98+
"id": {
99+
"description": "The globally unique identifier for this Statement",
137100
"type": "string",
138101
"readOnly": true
139102
},
140-
"parts": {
103+
"rank": {
104+
"description": "The rank of the Statement",
105+
"type": "string",
106+
"enum": [ "deprecated", "normal", "preferred" ],
107+
"default": "normal"
108+
},
109+
...schemaParts.PropertyValuePair.properties,
110+
"qualifiers": {
141111
"type": "array",
142112
"items": schemaParts.PropertyValuePair,
113+
"default": []
114+
},
115+
"references": {
116+
"type": "array",
117+
"items": {
118+
"type": "object",
119+
"properties": {
120+
"hash": {
121+
"description": "Hash of the Reference",
122+
"type": "string",
123+
"readOnly": true
124+
},
125+
"parts": {
126+
"type": "array",
127+
"items": schemaParts.PropertyValuePair,
128+
}
129+
}
130+
},
131+
"default": []
143132
}
144133
}
145-
}
134+
},
146135
};

0 commit comments

Comments
 (0)