dockstore icon indicating copy to clipboard operation
dockstore copied to clipboard

Swagger is incorrect for fields using @JsonSerialize

Open coverbeck opened this issue 6 years ago • 0 comments

Bug Report

The @JsonSerialize Jackson annotation overrides the default serialization for fields, but the generated Swagger doesn't reflect it. Generated client code will then be wrong too.

Example

Due to this line, starredUsers is serialized as an array of ids.

But the generated Swagger has it being an array of User.

┆Issue is synchronized with this Jira Bug ┆fixVersions: Dockstore 2.X ┆friendlyId: DOCK-1180 ┆sprint: Backlog ┆taskType: Bug

coverbeck avatar Jan 23 '20 21:01 coverbeck