From 7767ac39092f84134985d114eb249dc23920cb9a Mon Sep 17 00:00:00 2001 From: Viktor Erlingsson Date: Mon, 25 May 2026 16:51:19 +0200 Subject: [PATCH 1/3] ci: pin @stoplight/spectral-rulesets to 1.22.2 Version 1.22.3 introduces a regression in the duplicated-entry-in-enum rule that crashes Spectral with "Cannot read properties of null (reading 'enum')". See stoplightio/spectral#2959. Pin until the fix in #2960/#2963 is released. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 563366ae23..5c9ea4e553 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,7 @@ lint-js: .PHONY: lint-openapi lint-openapi: - npx --package=@stoplight/spectral-cli spectral --ruleset openapi/.spectral.json lint static/docs/openapi.yaml + npx --yes -p @stoplight/spectral-cli -p @stoplight/spectral-rulesets@1.22.2 spectral --ruleset openapi/.spectral.json lint static/docs/openapi.yaml .PHONY: test test: lib views From 76fa549aaf121f67c294043a4d4d4bbf56f98f7c Mon Sep 17 00:00:00 2001 From: Viktor Erlingsson Date: Mon, 25 May 2026 17:06:29 +0200 Subject: [PATCH 2/3] use long flags Co-authored-by: Patrik Ragnarsson --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5c9ea4e553..04f6ca78b0 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,7 @@ lint-js: .PHONY: lint-openapi lint-openapi: - npx --yes -p @stoplight/spectral-cli -p @stoplight/spectral-rulesets@1.22.2 spectral --ruleset openapi/.spectral.json lint static/docs/openapi.yaml + npx --yes --package=@stoplight/spectral-cli -p @stoplight/spectral-rulesets@1.22.2 spectral --ruleset openapi/.spectral.json lint static/docs/openapi.yaml .PHONY: test test: lib views From 85fbb335b6e7d96d74fc646bdee00a081e60fddd Mon Sep 17 00:00:00 2001 From: Viktor Erlingsson Date: Mon, 25 May 2026 17:18:37 +0200 Subject: [PATCH 3/3] use long form for both packages --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04f6ca78b0..eafc69a1d3 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,7 @@ lint-js: .PHONY: lint-openapi lint-openapi: - npx --yes --package=@stoplight/spectral-cli -p @stoplight/spectral-rulesets@1.22.2 spectral --ruleset openapi/.spectral.json lint static/docs/openapi.yaml + npx --yes --package=@stoplight/spectral-cli --package=@stoplight/spectral-rulesets@1.22.2 spectral --ruleset openapi/.spectral.json lint static/docs/openapi.yaml .PHONY: test test: lib views