diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb5dd59..889ad50 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,3 +10,11 @@ include: - /gitlab-templates/android-qt6.yml - /gitlab-templates/freebsd-qt6.yml - /gitlab-templates/windows-qt6.yml + +image_json_validate: + stage: validate + image: invent-registry.kde.org/sysadmin/ci-images/suse-qt68:latest + tags: + - Linux + script: + - find src/imageformats/ -name *.json | xargs -I file bash -c "echo file && jq -e '(.Keys | type == \"array\") and (.MimeTypes | type == \"array\") and (.MimeTypes | length) == (.Keys | length)' file" diff --git a/src/imageformats/hdr.json b/src/imageformats/hdr.json index 000729e..3c771c1 100644 --- a/src/imageformats/hdr.json +++ b/src/imageformats/hdr.json @@ -1,4 +1,4 @@ { - "Keys": [ "hdr" ], + "Keys": [ "hdr", "hdr" ], "MimeTypes": [ "image/x-hdr", "image/vnd.radiance" ] } diff --git a/src/imageformats/jp2.json b/src/imageformats/jp2.json index cf5898e..4bcc34a 100644 --- a/src/imageformats/jp2.json +++ b/src/imageformats/jp2.json @@ -1,4 +1,4 @@ { "Keys": [ "jp2", "j2k", "jpf" ], - "MimeTypes": [ "image/jp2" ] + "MimeTypes": [ "image/jp2", "image/x-jp2-codestream", "image/jpx" ] }