Skip to main content

document_if_match

Function document_if_match 

Source
pub fn document_if_match(
    operation: &mut Operation,
    requirement: IfMatchRequirement,
)
Expand description

Documents a revision precondition on one operation.

Replaces any existing If-Match header parameter, matched without regard to case, and adds 400, 412, and, for required routes, 428 responses with the shared error envelope. Responses the operation already documents are kept.