class

Detector::Specification::Hoppscotch

Inherits Detector < Reference < Object

Constants

ENDPOINT_MARKER = /"endpoint"\s*:/
REQUESTS_MARKER = /"requests"\s*:/

Every .json in the tree reaches these guards. "requests" and "variables" alone are common (k8s, GraphQL), so each pairs with the key that is specific to its Hoppscotch shape.

SECRET_MARKER = /"secret"\s*:/
VARIABLES_MARKER = /"variables"\s*:/

Instance methods

applicable?(filename : String) : Bool

Registers Hoppscotch collection and environment exports in CodeLocator.

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

A collection export (one object, or an array of them for an all-collections export) reports the tech. An environment export is registered for <<var>> resolution but reports nothing on its own, so a stray {name, variables} file can never surface the tech.

Source
idempotent?

Registers Hoppscotch collection and environment exports in CodeLocator.

Source
name

Registers Hoppscotch collection and environment exports in CodeLocator.

Source