Skip to content

Commit 017c7d7

Browse files
Sync from api-contracts PR dhis2/dhis2-api-contracts#87 (#23969)
Co-authored-by: dhis2-commit-signing-bot <dhis2-commit-signing-bot@dhis2.org>
1 parent 83542f4 commit 017c7d7

2 files changed

Lines changed: 47 additions & 47 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "category",
32
"httpMethod": "GET",
3+
"jsonSchema": "contracts/metadata-management-app/category/json-schema.json",
4+
"name": "category",
45
"requestUrl": "/categories/{id}",
5-
"responseStatus": 200,
6-
"jsonSchema": "contracts/metadata-management-app/category/json-schema.json"
7-
}
6+
"responseStatus": 200
7+
}
Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
{
2-
"type": "object",
2+
"additionalProperties": true,
33
"properties": {
4-
"id": {
5-
"type": "string"
6-
},
7-
"name": {
8-
"type": "string"
9-
},
10-
"displayName": {
11-
"type": "string"
12-
},
134
"attributeValues": {
14-
"type": "array",
155
"items": {
16-
"type": "object",
6+
"additionalProperties": true,
177
"properties": {
18-
"value": {
19-
"type": "string"
20-
},
218
"attribute": {
22-
"type": "object",
9+
"additionalProperties": true,
2310
"properties": {
2411
"id": {
2512
"type": "string"
@@ -28,49 +15,62 @@
2815
"required": [
2916
"id"
3017
],
31-
"additionalProperties": true
18+
"type": "object"
19+
},
20+
"value": {
21+
"type": "string"
3222
}
3323
},
3424
"required": [
3525
"value",
3626
"attribute"
3727
],
38-
"additionalProperties": true
39-
}
40-
},
41-
"dataDimensionType": {
42-
"type": "string",
43-
"enum": [
44-
"DISAGGREGATION",
45-
"ATTRIBUTE"
46-
]
47-
},
48-
"shortName": {
49-
"type": "string"
50-
},
51-
"description": {
52-
"type": "string"
53-
},
54-
"dataDimension": {
55-
"type": "boolean"
28+
"type": "object"
29+
},
30+
"type": "array"
5631
},
5732
"categoryOptions": {
58-
"type": "array",
5933
"items": {
60-
"type": "object",
34+
"additionalProperties": true,
6135
"properties": {
62-
"id": {
36+
"displayName": {
6337
"type": "string"
6438
},
65-
"displayName": {
39+
"id": {
6640
"type": "string"
6741
}
6842
},
6943
"required": [
7044
"id"
7145
],
72-
"additionalProperties": true
73-
}
46+
"type": "object"
47+
},
48+
"type": "array"
49+
},
50+
"dataDimension": {
51+
"type": "boolean"
52+
},
53+
"dataDimensionType": {
54+
"enum": [
55+
"DISAGGREGATION",
56+
"ATTRIBUTE"
57+
],
58+
"type": "string"
59+
},
60+
"description": {
61+
"type": "string"
62+
},
63+
"displayName": {
64+
"type": "string"
65+
},
66+
"id": {
67+
"type": "string"
68+
},
69+
"name": {
70+
"type": "string"
71+
},
72+
"shortName": {
73+
"type": "string"
7474
}
7575
},
7676
"required": [
@@ -82,5 +82,5 @@
8282
"dataDimension",
8383
"categoryOptions"
8484
],
85-
"additionalProperties": true
86-
}
85+
"type": "object"
86+
}

0 commit comments

Comments
 (0)