Skip to content

Commit

Permalink
fix JSON schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Jan 15, 2025
1 parent 528489a commit 10ff3f9
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 12 deletions.
51 changes: 42 additions & 9 deletions api/saucectl.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1124,10 +1124,6 @@
"description": "Overwrite app settings for real device to enable screenshot restriction.",
"type": "boolean"
},
"sysAlertsDelay": {
"description": "Overwrite app settings for real device to delay system alerts.",
"type": "boolean"
},
"vitals": {
"description": "Overwrite app settings for real device to enable vitals.",
"type": "boolean"
Expand All @@ -1139,10 +1135,6 @@
"biometrics": {
"description": "Overwrite app settings for real device to intercept biometric authentication.",
"type": "boolean"
},
"groupDirectory": {
"description": "Overwrite app settings for real device to enable group directory access.",
"type": "boolean"
}
}
}
Expand Down Expand Up @@ -2156,7 +2148,48 @@
"additionalProperties": false
},
"appSettings": {
"$ref": "#/allOf/1/then/properties/suites/items/properties/appSettings"
"description": "Overwrite real device settings.",
"type": "object",
"properties": {
"resigningEnabled": {
"description": "Overwrite app settings for real device to enable app resigning.",
"type": "boolean"
},
"audioCapture": {
"description": "Overwrite app settings for real device to capture audio.",
"type": "boolean"
},
"instrumentation": {
"description": "Overwrite app settings for real device instrumentation.",
"type": "object",
"properties": {
"imageInjection": {
"description": "Overwrite app settings for real device to inject provided images in the user app.",
"type": "boolean"
},
"sysAlertsDelay": {
"description": "Overwrite app settings for real device to delay system alerts.",
"type": "boolean"
},
"vitals": {
"description": "Overwrite app settings for real device to enable vitals.",
"type": "boolean"
},
"networkCapture": {
"description": "Overwrite app settings for real device to capture network.",
"type": "boolean"
},
"biometrics": {
"description": "Overwrite app settings for real device to intercept biometric authentication.",
"type": "boolean"
},
"groupDirectory": {
"description": "Overwrite app settings for real device to enable group directory access.",
"type": "boolean"
}
}
}
}
},
"simulators": {
"description": "Defines details for running this suite on virtual devices using a simulator.",
Expand Down
3 changes: 1 addition & 2 deletions api/v1alpha/framework/espresso.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@
}
}
}
}
},
"passThreshold": {
"$ref": "../subschema/common.schema.json#/definitions/passThreshold"
Expand Down Expand Up @@ -350,6 +351,4 @@
"suites"
],
"additionalProperties": true
}
}

2 changes: 1 addition & 1 deletion api/v1alpha/framework/xcuitest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
}
}
}
}
},
"simulators": {
"description": "Defines details for running this suite on virtual devices using a simulator.",
Expand Down Expand Up @@ -321,5 +322,4 @@
"suites"
],
"additionalProperties": true
}
}

0 comments on commit 10ff3f9

Please sign in to comment.