mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 05:23:13 +00:00
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:
parent
c81927e058
commit
2af26f956d
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
"""OpenAPI 3.1 + Redocly recommended, matching internal-portal (DEV-289)."""
|
"""OpenAPI 3.1 + Redocly recommended, matching internal-portal (DEV-289)."""
|
||||||
|
|
||||||
|
import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
ROOT = Path(__file__).resolve().parents[1]
|
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 'menu_url:\n type: [string, "null"]' in spec
|
||||||
assert "root: openapi.yaml" in redocly
|
assert "root: openapi.yaml" in redocly
|
||||||
assert '"openapi:lint"' in package
|
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 "npm run openapi:lint" in ci
|
||||||
assert "openapi: 3.1.0" in spec
|
assert "openapi: 3.1.0" in spec
|
||||||
assert "required: [stage, sha]" in spec
|
assert "required: [stage, sha]" in spec
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue