|
2461 | 2461 | "invalidations": { |
2462 | 2462 | "type": "array", |
2463 | 2463 | "items": { |
2464 | | - "description": "Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling", |
2465 | | - "anyOf": [ |
2466 | | - { |
2467 | | - "$ref": "#/definitions/LiveQueryInvalidationByMutation" |
2468 | | - }, |
2469 | | - { |
2470 | | - "$ref": "#/definitions/LiveQueryInvalidationByPolling" |
2471 | | - } |
2472 | | - ] |
| 2464 | + "$ref": "#/definitions/LiveQueryInvalidation" |
2473 | 2465 | }, |
2474 | 2466 | "additionalItems": false, |
2475 | | - "description": "Invalidate a query or queries when a specific operation is done without an error (Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling)" |
| 2467 | + "description": "Invalidate a query or queries when a specific operation is done without an error" |
2476 | 2468 | }, |
2477 | 2469 | "resourceIdentifier": { |
2478 | 2470 | "type": "string", |
|
2496 | 2488 | } |
2497 | 2489 | } |
2498 | 2490 | }, |
2499 | | - "LiveQueryInvalidationByMutation": { |
| 2491 | + "LiveQueryInvalidation": { |
2500 | 2492 | "additionalProperties": false, |
2501 | 2493 | "type": "object", |
2502 | | - "title": "LiveQueryInvalidationByMutation", |
| 2494 | + "title": "LiveQueryInvalidation", |
2503 | 2495 | "properties": { |
2504 | 2496 | "field": { |
2505 | 2497 | "type": "string", |
2506 | 2498 | "description": "Path to the operation that could effect it. In a form: Mutation.something. Note that wildcard is not supported in this field." |
2507 | 2499 | }, |
2508 | | - "invalidate": { |
2509 | | - "type": "array", |
2510 | | - "items": { |
2511 | | - "type": "string" |
2512 | | - }, |
2513 | | - "additionalItems": false |
2514 | | - } |
2515 | | - }, |
2516 | | - "required": ["field", "invalidate"] |
2517 | | - }, |
2518 | | - "LiveQueryInvalidationByPolling": { |
2519 | | - "additionalProperties": false, |
2520 | | - "type": "object", |
2521 | | - "title": "LiveQueryInvalidationByPolling", |
2522 | | - "properties": { |
2523 | 2500 | "pollingInterval": { |
2524 | 2501 | "type": "integer", |
2525 | 2502 | "description": "Polling interval in milliseconds" |
|
2529 | 2506 | "items": { |
2530 | 2507 | "type": "string" |
2531 | 2508 | }, |
2532 | | - "additionalItems": false, |
2533 | | - "description": "Schema coordinate of the query to be polled" |
| 2509 | + "additionalItems": false |
2534 | 2510 | } |
2535 | 2511 | }, |
2536 | | - "required": ["pollingInterval", "invalidate"] |
| 2512 | + "required": ["invalidate"] |
2537 | 2513 | }, |
2538 | 2514 | "LiveQueryIndexBy": { |
2539 | 2515 | "additionalProperties": false, |
|
0 commit comments