pub struct Operation {Show 20 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 documentation: Option<String>,
pub deprecated: bool,
pub extensions: Vec<(String, ValueRef)>,
pub external_docs: Option<ExternalDocs>,
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>§documentation: Option<String>§deprecated: bool§extensions: Vec<(String, ValueRef)>§external_docs: Option<ExternalDocs>Per-operation externalDocs (OAS Operation Object).
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>