summaryrefslogtreecommitdiffstats
path: root/browser/components/ion/schemas
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/ion/schemas')
-rw-r--r--browser/components/ion/schemas/IonContentSchema.json39
-rw-r--r--browser/components/ion/schemas/IonStudyAddonsSchema.json159
2 files changed, 198 insertions, 0 deletions
diff --git a/browser/components/ion/schemas/IonContentSchema.json b/browser/components/ion/schemas/IonContentSchema.json
new file mode 100644
index 0000000000..96bb4e7b81
--- /dev/null
+++ b/browser/components/ion/schemas/IonContentSchema.json
@@ -0,0 +1,39 @@
+{
+ "definitions": {},
+ "title": "Root",
+ "type": "object",
+ "required": [
+ "title",
+ "summary",
+ "details",
+ "joinIonConsent",
+ "leaveIonConsent"
+ ],
+ "properties": {
+ "title": {
+ "$id": "#root/title",
+ "title": "Title",
+ "type": "string"
+ },
+ "summary": {
+ "$id": "#root/summary",
+ "title": "Summary",
+ "type": "string"
+ },
+ "details": {
+ "$id": "#root/details",
+ "title": "Details",
+ "type": "string"
+ },
+ "joinIonConsent": {
+ "$id": "#root/joinIonConsent",
+ "title": "JoinIonconsent",
+ "type": "string"
+ },
+ "leaveIonConsent": {
+ "$id": "#root/leaveIonConsent",
+ "title": "LeaveIonconsent",
+ "type": "string"
+ }
+ }
+}
diff --git a/browser/components/ion/schemas/IonStudyAddonsSchema.json b/browser/components/ion/schemas/IonStudyAddonsSchema.json
new file mode 100644
index 0000000000..116b0dc1ae
--- /dev/null
+++ b/browser/components/ion/schemas/IonStudyAddonsSchema.json
@@ -0,0 +1,159 @@
+{
+ "definitions": {},
+ "title": "Root",
+ "type": "object",
+ "required": [
+ "addon_id",
+ "icons",
+ "name",
+ "version",
+ "sourceURI",
+ "description",
+ "privacyPolicy",
+ "studyType",
+ "authors",
+ "dataCollectionDetails",
+ "moreInfo",
+ "isDefault",
+ "studyEnded",
+ "joinStudyConsent",
+ "leaveStudyConsent"
+ ],
+ "properties": {
+ "addon_id": {
+ "$id": "#root/addon_id",
+ "title": "Addon_id",
+ "type": "string"
+ },
+ "icons": {
+ "$id": "#root/icons",
+ "title": "Icons",
+ "type": "object",
+ "required": ["32", "64", "128"],
+ "properties": {
+ "32": {
+ "$id": "#root/icons/32",
+ "title": "32",
+ "type": "string"
+ },
+ "64": {
+ "$id": "#root/icons/64",
+ "title": "64",
+ "type": "string"
+ },
+ "128": {
+ "$id": "#root/icons/128",
+ "title": "128",
+ "type": "string"
+ }
+ }
+ },
+ "name": {
+ "$id": "#root/name",
+ "title": "Name",
+ "type": "string"
+ },
+ "version": {
+ "$id": "#root/version",
+ "title": "Version",
+ "type": "string"
+ },
+ "sourceURI": {
+ "$id": "#root/sourceURI",
+ "title": "Sourceuri",
+ "type": "object",
+ "required": ["spec"],
+ "properties": {
+ "spec": {
+ "$id": "#root/sourceURI/spec",
+ "title": "Spec",
+ "type": "string"
+ }
+ }
+ },
+ "description": {
+ "$id": "#root/description",
+ "title": "Description",
+ "type": "string"
+ },
+ "privacyPolicy": {
+ "$id": "#root/privacyPolicy",
+ "title": "Privacypolicy",
+ "type": "object",
+ "required": ["spec"],
+ "properties": {
+ "spec": {
+ "$id": "#root/privacyPolicy/spec",
+ "title": "Spec",
+ "type": "string"
+ }
+ }
+ },
+ "studyType": {
+ "$id": "#root/studyType",
+ "title": "Studytype",
+ "type": "string"
+ },
+ "authors": {
+ "$id": "#root/authors",
+ "title": "Authors",
+ "type": "object",
+ "required": ["name", "url"],
+ "properties": {
+ "name": {
+ "$id": "#root/authors/name",
+ "title": "Name",
+ "type": "string"
+ },
+ "url": {
+ "$id": "#root/authors/url",
+ "title": "Url",
+ "type": "string"
+ }
+ }
+ },
+ "dataCollectionDetails": {
+ "$id": "#root/dataCollectionDetails",
+ "title": "Datacollectiondetails",
+ "type": "array",
+ "items": {
+ "$id": "#root/dataCollectionDetails/items",
+ "title": "Items",
+ "type": "string"
+ }
+ },
+ "moreInfo": {
+ "$id": "#root/moreInfo",
+ "title": "Moreinfo",
+ "type": "object",
+ "required": ["spec"],
+ "properties": {
+ "spec": {
+ "$id": "#root/moreInfo/spec",
+ "title": "Spec",
+ "type": "string"
+ }
+ }
+ },
+ "isDefault": {
+ "$id": "#root/isDefault",
+ "title": "Isdefault",
+ "type": "boolean"
+ },
+ "studyEnded": {
+ "$id": "#root/studyEnded",
+ "title": "Studyended",
+ "type": "boolean"
+ },
+ "joinStudyConsent": {
+ "$id": "#root/joinStudyConsent",
+ "title": "Joinstudyconsent",
+ "type": "string"
+ },
+ "leaveStudyConsent": {
+ "$id": "#root/leaveStudyConsent",
+ "title": "Leavestudyconsent",
+ "type": "string"
+ }
+ }
+}