Skip to main content

openapi_document

Function openapi_document 

Source
pub fn openapi_document(
    info: &ServiceInfo,
    routes: &[RouteDescription],
    media_types: Option<&[String]>,
) -> LinoValue
Expand description

Build an OpenAPI 3.1 document describing the service.

Every request and response body is declared for all negotiable media types, so that a generated client knows it may ask for text/lino.