From 3aae4b21674712a1d926062b61d39d8b7225913f Mon Sep 17 00:00:00 2001 From: Clemens Zagler Date: Mon, 6 May 2024 16:04:48 +0200 Subject: [PATCH] add validation for both static structures at the same time, as there can be ID overlap --- validation/validate.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/validation/validate.sh b/validation/validate.sh index e86ee83..9b68e9b 100755 --- a/validation/validate.sh +++ b/validation/validate.sh @@ -6,14 +6,20 @@ template=$( $tmpfile + content="" + for arg in "$@" + do + content+=`curl $arg` + done + + xmllint --format - <<<"${template//PLACEHOLDER/$content}" > $tmpfile xmllint --noout --schema ../netex-italian-profile/xsd/NeTEx_publication_Lev4.xsd $tmpfile } vUrl $endpoint/netex/parking \ -&& vUrl $endpoint/netex/sharing - +&& vUrl $endpoint/netex/sharing \ +&& vUrl $endpoint/netex/parking $endpoint/netex/sharing