Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Suppress false-positive Spectral lint on WebSocket endpoint (#13842)

Matt Millera5f7bc5658fd
diff --git a/.spectral.yaml b/.spectral.yaml
index 4bb4a4a94..a4b137628 100644
--- a/.spectral.yaml
+++ b/.spectral.yaml
@@ -89,3 +89,12 @@ rules:
then:
field: description
function: truthy
+
+overrides:
+ # /ws uses HTTP 101 (Switching Protocols) — a legitimate response for a
+ # WebSocket upgrade, but not a 2xx, so operation-success-response fires
+ # as a false positive. OpenAPI 3.x has no native WebSocket support.
+ - files:
+ - "openapi.yaml#/paths/~1ws"
+ rules:
+ operation-success-response: off