Analyzer::Specification::Hoppscotch
Inherits Analyzer::Specification::SpecificationEngine < Analyzer < FileHelper < Reference < Object
Parses Hoppscotch collection exports.
A collection is {v, name, folders[], requests[], auth?, headers?};
folders nest the same shape. A request carries method, endpoint,
params, headers, body and auth. <<var>> placeholders resolve
from Hoppscotch environment exports registered by the same detector
({name, variables: [{key, value|initialValue|currentValue, secret}]});
an unresolved one in the path becomes a :var path parameter, and one in
the host position is dropped as a base URL.
Constants
Unresolved ones are rewritten to {{var}}, so the shared URL helpers
recognise a templated host.
Class methods
Instance methods
Instance-side view of the same declaration. The per-file rescues live on
this base class, which has no way to name the analyzer that is running
inside them, so a skipped file could not be attributed to a tech.
Deriving it from analyzer_for keeps the name written exactly once.