Skip to content

Commit afd7242

Browse files
committed
deprecate and replace old field, add description for survey id field
1 parent d726770 commit afd7242

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

schemas/pioneer-citp-news-disinfo/measurements/measurements.1.schema.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@
142142
"type": "string"
143143
},
144144
"classification": {
145-
"type": "integer"
145+
"description": "deprecated, use pageClassification",
146+
"type": "string"
146147
},
147148
"dayOfWeek": {
148149
"type": "integer"
@@ -153,6 +154,9 @@
153154
"numShares": {
154155
"type": "integer"
155156
},
157+
"pageClassification": {
158+
"type": "integer"
159+
},
156160
"timeOfDay": {
157161
"type": "integer"
158162
},
@@ -173,6 +177,7 @@
173177
"type": "object"
174178
},
175179
"WebScience.SurveyId": {
180+
"description": "ID sent to Qualtrics, for associating survey responses with telemetry data",
176181
"type": "string"
177182
}
178183
},

templates/pioneer-citp-news-disinfo/measurements/measurements.1.schema.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"type": "object",
44
"properties": {
55
"WebScience.SurveyId": {
6-
"type": "string"
6+
"type": "string",
7+
"description": "ID sent to Qualtrics, for associating survey responses with telemetry data"
78
},
89
"WebScience.Measurements.PageNavigation": {
910
"type": "object",
@@ -60,7 +61,11 @@
6061
"type": "object",
6162
"properties": {
6263
"domain": { "type": "string" },
63-
"classification": { "type": "integer" },
64+
"classification": {
65+
"type": "string",
66+
"description": "deprecated, use pageClassification"
67+
},
68+
"pageClassification": { "type": "integer"},
6469
"visitReferrer": { "type": "string" },
6570
"audience": {
6671
"type": "string",

validation/pioneer-citp-news-disinfo/measurements.1.sample.pass.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"trackedShares": [
3232
{
3333
"domain": "nytimes.com",
34-
"classification": 0,
34+
"pageClassification": 0,
3535
"audience": "public",
3636
"visitReferrer": "google.com",
3737
"numShares": 5,
@@ -40,7 +40,7 @@
4040
},
4141
{
4242
"domain": "nytimes.com",
43-
"classification": 1,
43+
"pageClassification": 1,
4444
"audience": "restricted",
4545
"visitReferrer": "google.com",
4646
"numShares": 3,
@@ -55,7 +55,7 @@
5555
"trackedShares": [
5656
{
5757
"domain": "nytimes.com",
58-
"classification": 2,
58+
"pageClassification": 2,
5959
"visitReferrer": "google.com",
6060
"audience": "public",
6161
"numShares": 2,

0 commit comments

Comments
 (0)