diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-01 11:10:59 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-01 11:10:59 +0200 |
commit | 24999fd849c3cb103f4d38564a7a52e7bae7c5cd (patch) | |
tree | 1128bfd239951e1e50a34d699a94c81575d8b096 | |
parent | 457409937aadc4fa4e55426f97ade93edcda91a7 (diff) | |
download | obnam2-24999fd849c3cb103f4d38564a7a52e7bae7c5cd.tar.gz |
chore: fix warnings found by Subplot
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
-rw-r--r-- | subplot/server.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/subplot/server.yaml b/subplot/server.yaml index ac45cac..cf57931 100644 --- a/subplot/server.yaml +++ b/subplot/server.yaml @@ -17,6 +17,11 @@ - when: "I POST (?P<filename>\\S+) to (?P<path>\\S+), with (?P<header>\\S+): (?P<json>.*)" regex: true + types: + filename: word + path: word + header: word + json: text impl: python: function: post_file @@ -63,12 +68,17 @@ function: header_is - then: "the JSON body has a field {field}, henceforth {var}" + types: + field: word + var: word impl: python: function: remember_json_field - then: "the JSON body matches (?P<wanted>.*)" regex: true + types: + wanted: text impl: python: function: json_body_matches |