You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After migrating off from proc_macro_error crate the path tuple params compile error does not get propagated correctly up
fnpath_item(default_tag:Option<&str>) -> utoipa::openapi::path::PathItem{use utoipa::openapi::ToArray;use std::iter::FromIterator;
utoipa::openapi::PathItem::new(utoipa::openapi::PathItemType::Get,utoipa::openapi::path::OperationBuilder::new().responses(utoipa::openapi::ResponsesBuilder::new().response("200",utoipa::openapi::ResponseBuilder::new().description("success response").build()).build()).operation_id(Some("get_foo")).parameters(Some(<Queryas utoipa::IntoParams> ::into_params(||None))).parameter(::core::compile_error!("Missing `parameter_type` attribute, cannot define schema features without it.\n\nhelp = See docs for more details <https://docs.rs/utoipa/latest/utoipa/attr.path.html#parameter-type-attributes>");).tag(*[Some(""),default_tag,Some("crate")].iter().flatten().find(|t| !t.is_empty()).unwrap()))}
Fix compile error propagation via comprehensive use of
`ToTokensDiagnostics` trait. `ToTokensDiagnostics` was introduced in
PR #920 to allow error propagation up in the call stack for error
reporting. However this initial implementation was too limited which
resulted invalid compile errors in case of error. This implementation
aims to fix the shortcomings of the initial implementation.
Fixes#927
After migrating off from
proc_macro_error
crate the path tuple params compile error does not get propagated correctly upRelated to #920
The text was updated successfully, but these errors were encountered: