plugin/hub: use jsonschema to validate input

Use jsonschema to validate the input to the XMLRPC call to catch
mistakes early, i.e. before creating the task.
This commit is contained in:
Christian Kellner 2020-09-10 00:33:54 +02:00 committed by Tom Gundersen
parent 3dc463c8dd
commit af4e66d2b2
2 changed files with 62 additions and 0 deletions

View file

@ -6,6 +6,7 @@ RUN dnf -y upgrade \
--setopt=install_weak_deps=False \
install \
koji-web \
python3-jsonschema \
&& dnf clean all
COPY container/hub/hub.conf /etc/koji-hub/hub.conf