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
However, the generated spec omits the response entirely:
responses:
'400':
description: Bad Request'401':
description: Unauthorized'409':
description: Conflict'429':
description: Too Many Requests'500':
description: Internal Server Error
I'm not getting any compiler errors, warnings or runtime warnings of any kind.
Environment
cargo: cargo 1.62.0-beta.2 (3f052d8ee 2022-05-12)
target: x86_64-unknown-linux-gnu
paperclip: 0.7.0
actix-web: 4.1.0
actix-multiresponse: 0.1.1
prost: 0.9.0
The text was updated successfully, but these errors were encountered:
Looking in the generated spec, I do see something for Payload<T>, though it seems to ignore generics (is Apiv2Schema implemented incorrect for Payload<T>?):
_Payload<>:
description: |- Payload wrapper which facilitates the (de)serialization. This type can be used as both the request and response payload type. The proper format is chosen based on the `Content-Type` and `Accept` headers. When deserializing only the `Content-Type` header is used. When serializing, the `Accept` header is checked first, if it is missing the `Content-Type` header will be used. If both are missing the payload will default to `JSON`. # Errors When the `Content-Type` header is not provided in the request or is invalid, this will return a HTTP 400 error. If the `Content-Type` header, or `Accept` header is invalid when responding this will return a HTTP 400 error, however this is *not* done if both headers are missing on response. # Panics If during serializing no format is enabledtype: objectproperties:
organizations:
type: arrayitems:
type: objectproperties:
description:
type: stringid:
type: integerformat: int32name:
type: stringrequired:
- id
- namerequired:
- organizations
Hi,
I'm encountering some strange behavior when using
actix-multiresponse
, with thepaperclip
feature enabled.My route's function looks like this:
with
proto::Alert
being derived from a.proto
file usingprost
:The
paperclip
andserde
features are enabled for theproto
crate here, soApiv2Schema is derived
.The
Payload
struct looks like:It too has
Apiv2Schema
derived.However, the generated spec omits the response entirely:
I'm not getting any compiler errors, warnings or runtime warnings of any kind.
Environment
cargo 1.62.0-beta.2 (3f052d8ee 2022-05-12)
x86_64-unknown-linux-gnu
0.7.0
4.1.0
0.1.1
0.9.0
The text was updated successfully, but these errors were encountered: