In the error derive, we compute the type of error's context ( ie list its properties and their type).
For now the code is pretty simple and do manually the cast between simple rust type and openapi.
You can check the function fn error_context_to_openapi_object in src/view/mod.rs for example.
A better way can be found to do it, specially if the error derive if we can save in inventory something that be directly given to utoapi.
Acceptance criteria
A better way to compute context type which support more types with less code
Description and goal
In the error derive, we compute the type of error's context ( ie list its properties and their type).
For now the code is pretty simple and do manually the cast between simple rust type and openapi. You can check the function
fn error_context_to_openapi_object
insrc/view/mod.rs
for example.A better way can be found to do it, specially if the error derive if we can save in inventory something that be directly given to utoapi.
Acceptance criteria
A better way to compute context type which support more types with less code