Skip to main content

parse_catalog

Function parse_catalog 

Source
pub fn parse_catalog(
    provider_id: &str,
    value: &Value,
) -> Result<Vec<Model>, String>
Expand description

Parse a catalog payload. Native parseCatalog: accepts a bare array, {models:[…]}, or an object keyed by id. Every entry is stamped with the requesting provider id.