Closed Ploppz closed 1 month ago
Hi ! Two things here:
Closing for now, feel free to reopen if you still encounter some issues.
Thanks. For the first point, can you elaborate what the difference is between the definition and the handler? I only know the handler function, where in my code can I add path parameters to definition?
Hey ! What I mean is that you didn't specify a path parameter here:
.service( scope("/api/v1")
.service(
resource("/experiment_data")
.route(get().to(get_experiment_data))
)
)
Following actix's documentation, you could specify like bellow:
.service( scope("/api/v1")
.service(
resource("/experiment_data/{id}")
.route(get().to(get_experiment_data))
)
)
This way, both definition and handler hold a path parameter.
apistos seems to generate incorrect schema for tuples. It seems that
items
of anarray
is not allowed to be an array, it must be an objectmain.rs
Cargo.toml
:openapi.json
generated:Errors in swagger.io editor: