Skip to main content

temporal_api_sources

Function temporal_api_sources 

Source
pub fn temporal_api_sources(engine: &Engine) -> Vec<ApiSource>
Expand description

Compute the list of Scalar multi-source entries for temporal versioning.

Returns one ApiSource per distinct temporal version boundary across all loaded specs, plus one “current” source that uses no effective (i.e. the latest version). “Current” is first (Scalar default), then boundaries in descending chronological order (newest first).

If there are no temporal version boundaries (all specs are unversioned), returns a single “current” entry.