pub struct Operation {Show 21 fields
pub id: String,
pub original_id: Option<String>,
pub method: HttpMethod,
pub path_template: String,
pub path_params: Vec<Parameter>,
pub query_params: Vec<Parameter>,
pub header_params: Vec<Parameter>,
pub cookie_params: Vec<Parameter>,
pub querystring_params: Vec<Parameter>,
pub request_body: Option<Body>,
pub responses: Vec<Response>,
pub security: Vec<SecurityRequirement>,
pub tags: Vec<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub deprecated: bool,
pub external_docs: Option<ExternalDocs>,
pub extensions: Vec<(String, ValueRef)>,
pub servers: Vec<Server>,
pub callbacks: Vec<Callback>,
pub location: Option<SpecLocation>,
}Fields§
§id: String§original_id: Option<String>§method: HttpMethod§path_template: String§path_params: Vec<Parameter>§query_params: Vec<Parameter>§header_params: Vec<Parameter>§querystring_params: Vec<Parameter>OAS 3.2 in: querystring parameters — bind to the entire
query string (opaque pass-through). Spec semantics imply at most
one entry per operation; the parser warns rather than errors if
a spec declares multiple, and the IR carries them as a list for
uniformity with the other location buckets.
request_body: Option<Body>§responses: Vec<Response>§security: Vec<SecurityRequirement>§summary: Option<String>OAS §4.10 summary — short one-line label. PathItem-level
summary fallback is applied at parse time.
description: Option<String>OAS §4.10 description — long-form CommonMark. PathItem-level
description fallback is applied at parse time.
deprecated: boolOAS §4.10 deprecated.
external_docs: Option<ExternalDocs>Per-operation externalDocs (OAS §4.10).
extensions: Vec<(String, ValueRef)>§servers: Vec<Server>Effective servers list for this operation. The parser
resolves OAS §4.8.10 inheritance — operation-level entries win
over path-item entries, which win over the root list — and
materialises the result here. Empty if neither this operation,
its path item, nor the root declared any servers.
callbacks: Vec<Callback>OAS Callback Objects — out-of-band requests the API makes back
to the caller (event-driven / webhook APIs). Each entry pairs a
callback name with one runtime expression (e.g.
{$request.body#/callbackUrl}); a single callback name with
multiple expressions becomes multiple entries.
location: Option<SpecLocation>