Add vin-decoder as 4th entry to the APIS array in scripts/publish-openapi.js
and add RAPIDAPI_VIN_API_ID / RAPIDAPI_VIN_VERSION_ID secrets to the
publish-openapi.yaml CI workflow env block.
Closesleeworks-agents/api-company#138
Closesleeworks-agents/api-company#100
- scripts/publish-openapi.js: Node.js script using only built-in modules
(https, fs, path — no extra deps) that uploads each API's openapi.yaml
to the RapidAPI Platform API via PUT multipart/form-data.
- Reads RAPIDAPI_KEY/RAPIDAPI_PLATFORM_KEY from environment.
- Skips silently per API if API ID / version ID not set.
- Skips all uploads if RAPIDAPI_KEY not set (exits 0).
- Exits non-zero on any HTTP error.
- Logs: '✓ Published {api-name} spec to RapidAPI' on success.
- Passes 'node --check' syntax validation.
- .gitea/workflows/publish-openapi.yaml: triggers on push to main when
apis/*/openapi.yaml changes.
- Runs Redocly CLI lint (fails pipeline on spec errors).
- Detects changed specs via git diff.
- Calls publish-openapi.js; no secrets = skip, not crash.