This commit is contained in:
dgtlmoon
2026-02-13 11:41:55 +01:00
parent 10c9df288a
commit 490ca0a663
3 changed files with 34 additions and 17 deletions
+3
View File
@@ -463,6 +463,9 @@ def test_api_watch_PUT_update(client, live_server, measure_memory_usage, datasto
follow_redirects=True
)
if res.status_code != 201:
print(f"\n=== POST createwatch failed with {res.status_code} ===")
print(f"Response: {res.data}")
assert res.status_code == 201
wait_for_all_checks(client)
+20 -6
View File
@@ -400,13 +400,27 @@ components:
# Conditions (advanced logic)
conditions:
type: object
description: Custom conditions for change detection logic
type: array
items:
type: object
properties:
field:
type: string
description: Field to check (e.g., 'page_filtered_text', 'page_title')
operator:
type: string
description: Comparison operator (e.g., 'contains_regex', 'equals', 'not_equals')
value:
type: string
description: Value to compare against
required: [field, operator, value]
maxItems: 100
description: Array of condition rules for change detection logic
conditions_match_logic:
type: string
enum: ['ALL', 'ANY']
default: 'ALL'
description: Logic operator for multiple conditions
description: Logic operator - ALL (match all conditions) or ANY (match any condition)
DaySchedule:
type: object
@@ -528,15 +542,15 @@ components:
UpdateWatch:
allOf:
- $ref: '#/components/schemas/WatchBase'
- $ref: '#/components/schemas/Watch' # Extends Watch (includes WatchBase + readOnly fields)
- type: object
properties:
last_viewed:
type: integer
description: Unix timestamp in seconds of the last time the watch was viewed. Setting it to a value higher than `last_changed` in the "Update watch" endpoint marks the watch as viewed.
minimum: 0
# Allow readOnly fields in request body (they will be ignored) to support roundtrip GET/PUT workflows
# unevaluatedProperties: false
# ReadOnly fields are now evaluated (from Watch schema), so we can safely reject unknown fields
unevaluatedProperties: false
Tag:
type: object
+11 -11
View File
File diff suppressed because one or more lines are too long