Skip to main content

from_spec_with_http

Function from_spec_with_http 

Source
pub fn from_spec_with_http(
    spec: &Specification,
    record: &VersioningRecord,
    contract: impl Into<String>,
    include_http_operations: bool,
) -> ParserResult<VersionMap>
Expand description

Computes a version map while optionally collecting REST operation facts.

JSON-RPC generators pass false: a REST projection would otherwise invent HTTP routes for ordinary RPC interfaces. Type and declaration facts remain protocol-independent in both modes.