class

Detector::Specification::Apisix

Inherits Detector < Reference < Object

Constants

PAYLOAD_MARKER = /\bupstream_id\b|\bplugins\b/
ROUTES_MARKER = /\broutes\b/

Word-bounded guard markers. The accepted shapes require actual routes / uri(uris) / upstream_id or plugins keys, which always appear word-bounded in the raw document ("uri": / uri:), so \b keeps the guard a necessary condition while no longer tripping on substrings — the bare includes?("uri") matched "security" and made large OpenAPI JSON specs pay a full redundant parse here on every scan (this detector is non-idempotent).

URI_MARKER = /\buris?\b/

Class methods

tech_name

The tech name without needing an instance, so the registry can be read off the classes themselves rather than from a parallel list.

Source

Instance methods

applicable?(filename : String) : Bool

Registers every APISIX route config path in CodeLocator.

Source
detect(filename : String, file_contents : String) : Bool
Source
idempotent?

Registers every APISIX route config path in CodeLocator.

Source
set_name

Registers every APISIX route config path in CodeLocator.

Source