struct

Param

Inherits YAML::Serializable < JSON::Serializable < Struct < Value < Object

Constants

BODY_TYPE_ALIASES = {"body" => "json"}

Request-body param types that share the json bucket. Fourteen analyzers (NestJS, Next.js, Rocket, tRPC, Servant, Play, Scotty, Wisp, Cowboy, Elli, plumber, Nuxt, Nitro, …) spell a body field body rather than json, but every HTTP-shaped consumer dispatches on the six canonical types — the curl / httpie / PowerShell / mermaid builders take a request body from json + form, the OAS and Postman builders map anything else to a query parameter, and the probe deliverers post json or form. So body params were invisible in every HTTP-shaped output: 98 of them across the fixture tree, giving curl -i -X 'POST' '/submit' with no --data-raw at all and POST body fields emitted as in: query in the OpenAPI document.

Constructors

new(name : String, value : String, param_type : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

==(other : Param) : Bool
Source
add_tag(tag : Tag)

Dedup by (name, tagger) like push_callee/push_param do for their collections, so re-tagging the same target (e.g. a match in two code_paths) can't surface a duplicate "auth auth" in the text output.

Source
detached_copy
Source
name
Source
name=(name : String)
Source
param_type
Source
param_type=(value : String)
Source
param_type=(param_type : String)
Source
request_type

The canonical bucket this param belongs to. Consumers dispatch on this rather than on param_type, which stays exactly what the analyzer recorded so the JSON/YAML inventory is unchanged.

Source
tags
Source
tags=(tags : Array(Tag))
Source
value
Source
value=(value : String)
Source