test(openapi): stop pinning the Redocly patch version

Renovate minor bumps fail CI when the contract test hardcodes @redocly/cli.
This commit is contained in:
Adam Moussa 2026-09-25 16:16:28 -04:00
parent c81927e058
commit 2af26f956d
No known key found for this signature in database

View file

@ -1,5 +1,6 @@
"""OpenAPI 3.1 + Redocly recommended, matching internal-portal (DEV-289)."""
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
@ -38,7 +39,8 @@ def test_openapi_uses_redocly_recommended():
assert 'menu_url:\n type: [string, "null"]' in spec
assert "root: openapi.yaml" in redocly
assert '"openapi:lint"' in package
assert '"@redocly/cli": "2.52.1"' in package
dev = json.loads(package)["devDependencies"]
assert dev["@redocly/cli"]
assert "npm run openapi:lint" in ci
assert "openapi: 3.1.0" in spec
assert "required: [stage, sha]" in spec