addedInput schema / properties / previewScenarios
Added value: +{
+ "description": "Complete ordered set of up to six named preview states. Omit to retain the previous set; pass an empty array to clear. Keep scenarios relevant to the current page",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "description": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "overrides": {
+ "additionalProperties": false,
+ "properties": {
+ "dataFixtures": {
+ "oneOf": [
+ {
+ "description": "Omit or pass null to use normal sample data. An empty array matches no queries.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "description": "Optional message for the error scenario.",
+ "type": "string"
+ },
+ "hasMore": {
+ "description": "Paginated queries only. Defaults to true for loadingMore and false otherwise. empty requires false.",
+ "type": "boolean"
+ },
+ "params": {
+ "description": "Optional complete query parameters to match after host normalization. Omit to match all parameters for this query. Exact matches take precedence.",
+ "type": "object"
+ },
+ "query": {
+ "description": "Query name from the page queries catalog.",
+ "type": "string"
+ },
+ "scenario": {
+ "description": "Fixed visual state. success refreshing and loadingMore use built-in sample records unless value is supplied. Other scenarios use the query initial value. Data actions do not change fixture states.",
+ "enum": [
+ "success",
+ "empty",
+ "idle",
+ "loading",
+ "error",
+ "refreshing",
+ "loadingMore"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "object"
+ },
+ {
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Optional complete query result matching its result schema. Pass JSON directly including explicit null. Omit for built-in data. Not allowed with empty."
+ }
+ },
+ "required": [
+ "query",
+ "scenario"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inputs": {
+ "type": "object"
+ },
+ "state": {
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "description",
+ "overrides"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}