pub struct AnnotatedOperation {
pub path: String,
pub method: String,
pub features: Vec<ConformanceFeature>,
pub request_body_content_type: Option<String>,
pub sample_body: Option<String>,
pub query_params: Vec<(String, String)>,
pub header_params: Vec<(String, String)>,
pub path_params: Vec<(String, String)>,
pub response_schema: Option<Schema>,
pub response_schemas: BTreeMap<u16, Value>,
pub request_body_schema: Option<Schema>,
pub security_schemes: Vec<SecuritySchemeInfo>,
}Expand description
An API operation annotated with the conformance features it exercises
Fields§
§path: String§method: String§features: Vec<ConformanceFeature>§request_body_content_type: Option<String>§sample_body: Option<String>§query_params: Vec<(String, String)>§header_params: Vec<(String, String)>§path_params: Vec<(String, String)>§response_schema: Option<Schema>Response schema for validation (JSON string of the schema)
response_schemas: BTreeMap<u16, Value>Round 25 — per-status response schemas (JSON values, pre-resolved
via $ref). Keyed by HTTP status code, populated for every
status declared in the spec that has an application/json
body. The self-test driver looks up the schema for each probe’s
actual status and validates the response body against it
(closing round 21.3 / Srikanth’s a2 / a3 ask). Empty when the
spec declares no JSON response bodies.
request_body_schema: Option<Schema>Round 17.2 — the resolved request-body schema (application/json).
Used by the self-test driver to synthesise schema-aware
negative mutations (wrong type, min/max bounds, pattern, enum
out-of-range, required-field removal). Independent of
sample_body, which is the positive payload.
security_schemes: Vec<SecuritySchemeInfo>Security scheme details resolved from the OpenAPI spec
Trait Implementations§
Source§impl Clone for AnnotatedOperation
impl Clone for AnnotatedOperation
Source§fn clone(&self) -> AnnotatedOperation
fn clone(&self) -> AnnotatedOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for AnnotatedOperation
impl RefUnwindSafe for AnnotatedOperation
impl Send for AnnotatedOperation
impl Sync for AnnotatedOperation
impl Unpin for AnnotatedOperation
impl UnsafeUnpin for AnnotatedOperation
impl UnwindSafe for AnnotatedOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more