#!/usr/bin/env sh

./bundle.sh

YML_IN="spec/zustelldienst-bundled.yml"

docker run --rm -v "$(pwd):/work" jeanberu/swagger-cli \
  swagger-cli validate "/work/$YML_IN"

docker run --rm -v "$(pwd):/work" -w /work stoplight/spectral \
  lint "/work/$YML_IN" -D
