#!/usr/bin/env bash set -e echo "🔍 Checking H5 OpenAPI schema is up-to-date..." node ui/h5/scripts/generate-openapi.mjs if ! git diff --ignore-space-change --exit-code ui/h5/openapi.json; then echo "" echo "❌ H5 OpenAPI schema is out of date!" echo "" echo "Run 'node ui/h5/scripts/generate-openapi.mjs' locally and commit ui/h5/openapi.json." echo "" echo "Changes detected:" git diff ui/h5/openapi.json exit 1 fi echo "✅ H5 OpenAPI schema is up-to-date"