Skip to content

Commit b9004c6

Browse files
committed
Adjusting the return value
String is notoriously tricky to handle on the receiving end as the content gets confused with possible JSON object. Updating the API return to be an object to avoid confusion.
1 parent e2dc469 commit b9004c6

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

SHIELD.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,8 +1026,14 @@
10261026
"content": {
10271027
"application/json": {
10281028
"schema": {
1029-
"type": "string",
1030-
"example": "1.2.3"
1029+
"properties": {
1030+
"appVersion": {
1031+
"description": "Follows symantec versioning as laid out here: https://semver.org/. This number is the version of the application package.",
1032+
"example": "1.2.3",
1033+
"type": "string"
1034+
}
1035+
},
1036+
"type": "object"
10311037
}
10321038
}
10331039
},
@@ -1054,8 +1060,14 @@
10541060
"content": {
10551061
"application/json": {
10561062
"schema": {
1057-
"type": "string",
1058-
"example": "1.2.3"
1063+
"properties": {
1064+
"appVersion": {
1065+
"description": "Follows symantec versioning as laid out here: https://semver.org/. This number is the version of the application package.",
1066+
"example": "1.2.3",
1067+
"type": "string"
1068+
}
1069+
},
1070+
"type": "object"
10591071
}
10601072
}
10611073
},

0 commit comments

Comments
 (0)