Skip to main content

param_info_to_parameter

Function param_info_to_parameter 

Source
pub fn param_info_to_parameter(param: &ParamInfo) -> Parameter
Expand description

Convert a ParamInfo to an OpenAPI Parameter object.

Creates a path parameter with the appropriate schema type based on the converter. All path parameters are required. Metadata (title, description, deprecated, examples) is copied from the ParamInfo.